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

Refactoring Nav widget. #187

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open

Refactoring Nav widget. #187

wants to merge 42 commits into from

Conversation

terabytesoftw
Copy link
Member

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

terabytesoftw and others added 30 commits November 29, 2024 07:16
@terabytesoftw terabytesoftw marked this pull request as ready for review December 18, 2024 10:38
@terabytesoftw terabytesoftw added the status:code review The pull request needs review. label Dec 18, 2024
@terabytesoftw terabytesoftw requested a review from vjik December 18, 2024 10:39
src/Dropdown.php Outdated Show resolved Hide resolved
src/NavStyles.php Outdated Show resolved Hide resolved
src/Nav.php Show resolved Hide resolved
*
* @see https://getbootstrap.com/docs/5.3/components/navs-tabs/#horizontal-alignment
*/
enum NavStyle: string
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

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.

src/NavLink.php Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants