Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bbt-55] Collapse Menu Link Behaviour #58

Closed
wants to merge 1 commit into from

Conversation

squarewave17
Copy link
Contributor

Description

Fixes #55 - the 'collapse menu' link was changing size when Themer was open.

Change Log

  • Added a CSS rule to ensure the link stays at the right size

Steps to test

Just open up themer and check the 'collapse menu' link. The font size should remain at 13px

Note

The 13px font size is not uniform with the rest of the menu. The problem itself occurs because the font is not set in the same way that the other links use, it inherits the body font size which is somewhat janky of wordpress imo.
Rather than modify themer css too much, the most elegant way to fix this was to just add a new rule.

Screenshots/Videos

http://bigbite.im/i/eKj6p8

Checklist:

  • [ x] My code follows the style guidelines of this project
  • [ x] I have performed a self-review of my own code
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [ x] My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@g-elwell
Copy link
Member

@squarewave17 thanks for this. This does fix the 'Collapse' button, but I wonder if we're patching over the bigger issue of CSS leaking outside of the themer preview. There could be other examples where this causes problems, so I feel like we should try to fix the cause otherwise we'd probably continue to see other similar instances crop up again.

@squarewave17
Copy link
Contributor Author

@squarewave17 thanks for this. This does fix the 'Collapse' button, but I wonder if we're patching over the bigger issue of CSS leaking outside of the themer preview. There could be other examples where this causes problems, so I feel like we should try to fix the cause otherwise we'd probably continue to see other similar instances crop up again.

Agreed, i'll take a closer look at it 🙏🏻

@g-elwell
Copy link
Member

g-elwell commented Jul 2, 2024

Closing as we'll address in #61

@g-elwell g-elwell closed this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants