PW-186: Adjust list styling inside accordions#195
Conversation
matt-bernhardt
left a comment
There was a problem hiding this comment.
I'm approving this because these rules don't seem to be problematic - but I do want to ask whether the URL I include in the comment below should be affected by this change?
Based on an inspection of that page, this change won't affect that list - and in order to make the markup something that this would apply to, something else intervenes and makes the list element hidden. Maybe I'm missing something, and you're going after a different batch of content?
|
|
||
| .expandable { | ||
| ul { | ||
| li.content { |
There was a problem hiding this comment.
Is there a piece of content that I can look at that has this condition? When I looked for accordion content on the network, the first thing I came across was the "How does the opt-in license work?" panel here: https://pw-186-mitlib-wp-network.pantheonsite.io/scholarly/mit-open-access/opt-in-oa-license/
These list items don't have the content class, so maybe these aren't the target. However, when I edit the DOM to add that class, some javascript on the page runs and marks them as display: none - so then I'm wondering if you're targeting a different type of content than this.
I do see that these list items don't have the rules you're declaring. when I update one of the items to carry these rules (see below, second element) then it does look a little better.
I'm going to approve this, as the rules themselves don't cause any problems so if you're going after a different set of list styles than for this page, I don't want t delay this longer than I already have. If this is an example of a list that you're hoping to change, though, I think the markup you're looking for doesn't end with li.content
|
@matt-bernhardt Thank you for flagging that! I completely ignored the class existing being unusual. I poked around a bit on the example UXWS was working on and it sometimes added the classes automatically and sometimes didn't. We're going to not ship this code, and focus on the editors stripping away the classes if they're added during editing. |
|
Closing this PR. We're not going to add this and will pay closer attention to markup when editing. |
Developer
We noticed that the styling of lists inside our accordions included two or three times as much margins/padding as lists on pages that have been typeset.
This work adjusts the spacing to match other pages with ideal spacing.
https://mitlibraries.atlassian.net/browse/PW-186
Stylesheets
string incremented.
Secrets
Documentation
Accessibility
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
Stakeholder approval
Dependencies
YES | NO dependencies are updated
Code Reviewer
(not just this pull request message)