-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix: Add nav drawer icon override support (fixes #417) #498
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
@@ -20,8 +21,12 @@ | |||
{{/each}} | |||
|
|||
<button name="drawer" class="btn-icon nav__btn nav__drawer-btn js-nav-drawer-btn is-position-{{_config._drawer._position}}" data-event="toggleDrawer" aria-expanded="false" aria-label="{{_globals._accessibility._ariaLabels.navigationDrawer}}" data-order="{{_globals._extensions._drawer._navOrder}}" data-tooltip-id="drawer"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this not become btn-text
if there is no icon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically, it should yes. But I have taken the approach of leaving as is for the time being to reduce potential issues.
If we were to change the button class to btn-text
in the navigation and have the theme set up to have a different font for buttons than body, then we could run into an issue whereby the fonts are different between buttons in the same space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Working nicely
## [6.45.7](v6.45.6...v6.45.7) (2024-03-04) ### Chore * Delete .DS_Store (#503) ([f52c863](f52c863)), closes [#503](#503) ### Fix * Add nav drawer icon override support (fixes #417) (#498) ([d4a7715](d4a7715)), closes [#417](#417) [#498](#498) ### Upgrade * Bump ip from 1.1.8 to 1.1.9 (#501) ([6dad707](6dad707)), closes [#501](#501)
🎉 This PR is included in version 6.45.7 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fixes: #417
Fix
Preview of sidebar icons:
Dependency: adaptlearning/adapt_framework#3513