UI: Add nav pills component #94703
No reviewers
Labels
No Label
legacy project
Infrastructure: Blender Web Assets
legacy project
Infrastructure: Websites
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Resolved
Type
Design
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/web-assets#94703
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "component-nav-pills"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request adds the
nav-pills
component to Web Assets, that can be flexibly used as horizontal, vertical or sidebar navigation. The spacings are synchronized with the existing, similardropdown
component, but can be easily changed by utility classes if needed.The navigation pills have a horizontal layout by default, that can be simply changed to vertical layout with the addition of the
flex-column
class – using the same convention as it works in Bootstrap. I'd personally suggest to not introduce extra new component classes likenav-drawer
or similar, as this simple starting point can be easily used for multiple use cases with very little additional placement- or project specificity.This PR is a proposal for the issue #94701, but with possibly less specificity than outlined.
Screenshots
Horizontal:
Vertical:
Nice! Clean and effective 👌
Thanks!