diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor index 96f947c6ddf..8fcc57e8b6e 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor @@ -1,16 +1,19 @@ -@namespace Bit.BlazorUI +@namespace Bit.BlazorUI @inherits BitComponentBase
align-items is not stretch, that width collapses to the content instead -
+ AutoSize embraces this and sizes the separator to its content (its height, for a vertical one),
+ where the default keeps forcing the full length.
+ separator role, so a screen
+ reader announces the boundary between groups. A page can also carry many rules that mean nothing -
+ each announced as "separator" is noise - and Decorative removes such a separator from the
+ accessibility tree while keeping its looks. The two below are visually identical; only what a screen
+ reader hears differs.
+ max-width with an auto margin,
+ for one, shortens the line the way a length prop would - and Styles and Classes reach
+ each part of the component by name: the Root and the Content the label renders in. The
+ classed example below restyles the line itself into a gradient through the root class.
+