-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
feat(sidebar): Allow to customize the Sidebar component with 'as' #703
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #703 +/- ##
=======================================
Coverage 99.43% 99.43%
=======================================
Files 131 131
Lines 6502 6504 +2
Branches 488 488
=======================================
+ Hits 6465 6467 +2
Misses 37 37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Hey, @mvaled... I got your point here. I'm wondering if we don't want to keep the IMHO, a |
I'd rather have the sidebar completely as the The first example of On the other hand, an To be honest, I was somewhat surprised to see an The app I'm doing has a vertical navigation as a sidebar (like Sentry's navbar): Maybe I could use |
Well, @mvaled... it seems that you are correct. I wasn't aware of it, thanks for the explanation. So, in order to be more semantic-correct we should even avoid using the WDYT? Does it make sense? I found this one interesting as well: https://www.w3.org/TR/html5-author/the-aside-element.html |
I'll include the 'nav' as the default. Should I also include a (soft) breaking-change in the changelog. Or do you prefer to collect changelogs at the end of the release? |
@mvaled could you check the unit tests, please? :) |
I think you can argue either way on this semantically quest easily. Sidebars often include navigation but aren't limited to it. Example: https://flowbite.com/react-admin-dashboard-pro/preview/ I do agree that And thank you for contributing, once the unit tests are ready we can merge :D |
@rluders The tests pass now. It was the change in the |
In some cases, the sidebar is the main navigation of an app and setting using <Sidebar as="nav"> ... </Sidebar> would be more appropriate.
Thank you! Let's get it merged. |
Description
In some cases, the sidebar is the main navigation of an app and setting using
would be more appropriate.
Type of change