feat: add mt-divider component - #1287
Open
Arnold Stoba (arnoldstoba) wants to merge 2 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Arnold Stoba (arnoldstoba)
force-pushed
the
feat/add-divider-component
branch
from
July 23, 2026 09:12
0f6a932 to
6259344
Compare
Arnold Stoba (arnoldstoba)
requested review from
Alastair Fraser (alastair-simon) and
Fabian Hüske (fabianhueske)
July 23, 2026 09:18
Arnold Stoba (arnoldstoba)
force-pushed
the
feat/add-divider-component
branch
from
July 24, 2026 11:05
330b625 to
87c0372
Compare
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Arnold Stoba (arnoldstoba)
force-pushed
the
feat/add-divider-component
branch
from
July 24, 2026 11:12
87c0372 to
df78b66
Compare
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.
What?
New
mt-dividercomponent: a horizontal or vertical separator line.orientation:horizontal(default) /verticalvariant:solid(default) /dashedcolor: any border color token, defaults tocolor-border-secondary-defaultalignment: places slot contentcenter(default),left, orright; the line on the aligned side is removeddecorative: removes the separator semantics for purely visual linesfull-bleed: stretches the divider beyond its container by the default card padding, e.g. to span the full width of a cardCloses #1197
Why?
Sections often need a stronger visual boundary than whitespace provides; until now there was no dedicated separator component (see #1197).
How?
::before/::afterpseudo-elements, so slot content renders centered between two flexible segments with a fixed gap;alignmentsuppresses the segment on the aligned side.role="separator"with matchingaria-orientationby default,role="none"whendecorative. With slot content the role is dropped entirely, because ARIA treats a separator's children as presentational — this keeps e.g. a button inside the divider reachable for assistive technologies.full-bleedapplies negative margins of the default card padding (--scale-size-24): inline for horizontal dividers, block for vertical ones.Testing?
Anything Else?
apps/docs).