feat(divider): create standalone ItDividerComponent#683
Open
giulio-leone wants to merge 2 commits into
Open
Conversation
Extract the divider logic from ItDropdownItemComponent into a dedicated standalone component that can be used independently in any list or dropdown context. - Dual selector: <it-divider> (custom element) and li[itDivider] (attribute) - Auto-detects host element: wraps in <li> only when host is not already <li> - Exported via public_api.ts and ItDropdownModule - 11 strict unit tests covering both selectors, standalone usage, and multiples Closes italia#606 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Create complete doc page with element and attribute usage examples, API tab, and route registration. Shows it-divider element and li[itDivider] attribute variants inside dropdown menus. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@giulio-leone is attempting to deploy a commit to the dip-trasformazione-digitale Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #606
Extracts the divider logic from
ItDropdownItemComponentinto a dedicated standalone componentItDividerComponent, making it reusable across any list or dropdown context.Changes
New component:
ItDividerComponent<it-divider>(custom element) andli[itDivider](attribute on native<li>)<li>only when the host element is not already a<li>, avoiding invalid nested<li>elements<span class="divider">\</span>— fully compatible with Bootstrap Italia's existing CSSOnPushchange detectionIntegration
public_api.tsfor direct importsItDropdownModulefor seamless use alongside dropdown itemsUsage examples
Testing
<li>wrapping<li>)