-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Refactoring Nav
widget.
#187
base: master
Are you sure you want to change the base?
Conversation
terabytesoftw
commented
Dec 18, 2024
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ❌ |
…s, headers, links, and text items.
…or the toggle button.
…/yii-bootstrap5 into refactor-dropdown-widget
…/yii-bootstrap5 into refactor-dropdown-widget
…trap5 into refactor-menus
…ing nav links with attributes.
* | ||
* @see https://getbootstrap.com/docs/5.3/components/navs-tabs/#horizontal-alignment | ||
*/ | ||
enum NavStyle: string |
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.
Split it to:
- alignment (horizontal start, horizontal center, horizontal end),
- style (default, tabs, pills, underline)
- ??? (default, fill, justified) - I don't know how better call this property.
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.
https://getbootstrap.com/docs/5.3/components/navs-tabs/#available-styles The documentation refers to styles, it seems to me that dividing them makes it more complex.
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.
Deny combine styles of different types.
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.
This widget is used to build the menu widgets, and styles are perfect for that purpose, separating them would make it even more difficult, that's why it is structured this way in the documentation.