Opened 6 years ago
Closed 6 years ago
#7940 closed defect (bug) (fixed)
Nouveau - Don't add CSS declarations universally to parent elements
Reported by: | shubh14 | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.0.0 |
Component: | Templates | Keywords: | |
Cc: | hnla |
Description
Hi,
I am noticing a lot of issues with bp-nouveau template. I have also tested these issues on a fresh install, so there arent any theme/plugin conflicts.
In these two images I can see the tag and <a> tag on the page - <a href="https://i.imgur.com/GFgBKNt.jpg" rel="noopener" target="_blank">https://i.imgur.com/GFgBKNt.jpg</a> / https://i.imgur.com/AfMji8b.jpg
This part of the CSS is getting applied all over the site and I do not want my non-buddypress elements to have these properties. Is it not better to use .buddypress div{} instead of just div{} - <a href="https://i.imgur.com/0aq6i2m.jpg" rel="noopener" target="_blank">https://i.imgur.com/0aq6i2m.jpg</a>
Buddypress Version 3.1.0
Wordpress Version 4.9.7
I have never submitted a ticket before so please forgive any errors
Attachments (3)
Change History (10)
#2
@
6 years ago
- Cc hnla added
- Keywords reporter-feedback removed
- Milestone changed from Awaiting Review to 3.2.0
- Summary changed from Html and CSS Issues with bp-nouveau to Nouveau - Don't add CSS declarations universally to parent elements
#3
@
6 years ago
I think it would be better if those "universal tags" could be wrapped inside #buddypress-main or #buddypress
#4
@
6 years ago
- Milestone changed from 3.2.0 to 4.0
Not sure why it was written this way but we will change the CSS for 4.0.0 as I think we need a little formal testing rather than throwing it into a 3.2.0 with not much oversight.
#6
@
6 years ago
It looks like this was originally introduced in https://github.com/buddypress/next-template-packs/commit/4a8bdc6c114ca714be2c0b70217952180d226bce. There's no indication there or elsewhere why it was done like this, but I'm assuming it was an oversight. I've done some testing with the declarations applied only to #buddypress
and things look good. Let's go ahead with the change.
The first two issues are already reported - #7894, #7923.
With regards to your third issue, what are you trying to say? That there shouldn't be a border-radius in the forum thread? Or is there something wrong with the background?I should have done a better job reading! I understand now. Don't add CSS declarations universally to thediv
(and other) elements.