@aleph-alpha/ui-library 6.4.0 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/system/components/UiFileItem/UiFileItem.vue.d.ts +10 -1
- package/dist/system/components/UiFileItem/index.d.ts +1 -1
- package/dist/system/components/UiFileItem/types.d.ts +81 -5
- package/dist/system/components/UiPopover/UiPopoverContent.vue.d.ts +1 -0
- package/dist/system/components/UiPopover/types.d.ts +6 -0
- package/dist/system/components/core/popover/PopoverContent.vue.d.ts +1 -0
- package/dist/system/components/core/toggle/index.d.ts +1 -1
- package/dist/system/lib.js +12336 -12055
- package/dist/system/patterns/UiFloatActions/UiFloatActionItems.vue.d.ts +21 -174
- package/dist/system/patterns/UiFloatActions/core/FloatingButton.vue.d.ts +36 -0
- package/dist/system/patterns/UiFloatActions/core/FloatingInput.vue.d.ts +19 -0
- package/dist/system/patterns/UiFloatActions/floatActionItemContext.d.ts +3 -1
- package/dist/system/patterns/UiFloatActions/types.d.ts +93 -19
- package/dist/system/patterns/UiLayout/layout-shell.d.ts +117 -252
- package/package.json +2 -2
- package/src/components/UiAccordion/UiAccordion.stories.ts +8 -8
- package/src/components/UiAlert/UiAlert.stories.ts +13 -13
- package/src/components/UiAlertDialog/UiAlertDialog.stories.ts +4 -4
- package/src/components/UiAutocomplete/UiAutocomplete.stories.ts +13 -13
- package/src/components/UiAutocomplete/UiAutocomplete.vue +3 -3
- package/src/components/UiBadge/UiBadge.stories.ts +9 -9
- package/src/components/UiBreadcrumb/UiBreadcrumb.stories.ts +14 -14
- package/src/components/UiButton/UiButton.stories.ts +35 -35
- package/src/components/UiButtonGroup/UiButtonGroup.stories.ts +6 -6
- package/src/components/UiCalendar/UiCalendar.stories.ts +6 -6
- package/src/components/UiCard/UiCard.stories.ts +6 -6
- package/src/components/UiCheckbox/UiCheckbox.stories.ts +30 -30
- package/src/components/UiChip/UiChip.stories.ts +14 -14
- package/src/components/UiChip/UiChip.vue +1 -1
- package/src/components/UiDialog/UiDialog.stories.ts +20 -20
- package/src/components/UiDrawer/UiDrawer.stories.ts +29 -29
- package/src/components/UiDropdownMenu/UiDropdownMenu.stories.ts +13 -13
- package/src/components/UiEmpty/UiEmpty.vue +1 -1
- package/src/components/UiFadeMask/UiFadeMask.stories.ts +13 -13
- package/src/components/UiField/UiField.stories.ts +27 -27
- package/src/components/UiFileItem/UiFileItem.vue +114 -9
- package/src/components/UiFileItem/__tests__/UiFileItem.test.ts +54 -2
- package/src/components/UiFileItem/index.ts +1 -0
- package/src/components/UiFileItem/types.ts +82 -5
- package/src/components/UiFileType/UiFileType.stories.ts +10 -10
- package/src/components/UiFileUploadBox/UiFileUploadBox.stories.ts +10 -10
- package/src/components/UiFileUploadBox/UiFileUploadBox.vue +3 -3
- package/src/components/UiIcon/UiIcon.stories.ts +9 -9
- package/src/components/UiInput/UiInput.stories.ts +13 -13
- package/src/components/UiInput/UiInput.vue +1 -1
- package/src/components/UiInputGroup/UiInputGroup.stories.ts +10 -10
- package/src/components/UiItem/UiItem.stories.ts +12 -12
- package/src/components/UiItem/__tests__/UiItem.test.ts +2 -2
- package/src/components/UiKbd/UiKbd.stories.ts +18 -18
- package/src/components/UiKbd/UiKbd.vue +1 -1
- package/src/components/UiLabel/UiLabel.stories.ts +12 -12
- package/src/components/UiLabel/__tests__/UiLabel.test.ts +1 -1
- package/src/components/UiListbox/UiListbox.stories.ts +20 -20
- package/src/components/UiNavigationMenu/UiNavigationMenu.stories.ts +94 -94
- package/src/components/UiPopover/UiPopover.stories.ts +168 -27
- package/src/components/UiPopover/UiPopoverContent.vue +2 -0
- package/src/components/UiPopover/__tests__/UiPopover.test.ts +48 -0
- package/src/components/UiPopover/types.ts +7 -0
- package/src/components/UiRadioGroup/UiRadioGroup.stories.ts +53 -53
- package/src/components/UiRangeCalendar/UiRangeCalendar.stories.ts +6 -6
- package/src/components/UiResizable/UiResizable.stories.ts +40 -40
- package/src/components/UiSelect/UiSelect.stories.ts +14 -14
- package/src/components/UiSeparator/UiSeparator.stories.ts +16 -16
- package/src/components/UiSheet/UiSheet.stories.ts +29 -29
- package/src/components/UiSlider/UiSlider.stories.ts +28 -28
- package/src/components/UiSnackbar/UiSnackbar.stories.ts +6 -6
- package/src/components/UiSnackbar/UiSnackbar.vue +2 -2
- package/src/components/UiSnackbar/UiSnackbarContent.vue +2 -2
- package/src/components/UiSpinner/UiSpinner.stories.ts +8 -8
- package/src/components/UiStepper/UiStepper.stories.ts +6 -6
- package/src/components/UiSwitch/UiSwitch.stories.ts +37 -37
- package/src/components/UiTable/UiTable.stories.ts +4 -4
- package/src/components/UiTabs/UiTabs.stories.ts +64 -64
- package/src/components/UiTagsInput/UiTagsInput.stories.ts +16 -16
- package/src/components/UiTextarea/UiTextarea.stories.ts +20 -20
- package/src/components/UiToggle/UiToggle.stories.ts +26 -26
- package/src/components/UiToggleGroup/UiToggleGroup.stories.ts +31 -31
- package/src/components/UiTooltip/UiTooltip.stories.ts +7 -7
- package/src/components/core/accordion/AccordionContent.vue +1 -1
- package/src/components/core/accordion/AccordionTrigger.vue +1 -1
- package/src/components/core/alert/AlertDescription.vue +1 -1
- package/src/components/core/alert/index.ts +1 -1
- package/src/components/core/alert-dialog/AlertDialogDescription.vue +1 -1
- package/src/components/core/badge/index.ts +2 -2
- package/src/components/core/button/index.ts +3 -3
- package/src/components/core/calendar/Calendar.vue +4 -4
- package/src/components/core/calendar/CalendarCell.vue +1 -1
- package/src/components/core/calendar/CalendarHeading.vue +1 -1
- package/src/components/core/card/CardDescription.vue +1 -1
- package/src/components/core/dialog/DialogDescription.vue +1 -1
- package/src/components/core/drawer/DrawerDescription.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuCheckboxItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuLabel.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuRadioItem.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuShortcut.vue +1 -1
- package/src/components/core/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
- package/src/components/core/field/FieldDescription.vue +1 -1
- package/src/components/core/field/FieldError.vue +1 -1
- package/src/components/core/field/FieldLabel.vue +1 -1
- package/src/components/core/field/FieldLegend.vue +2 -2
- package/src/components/core/field/FieldSeparator.vue +1 -1
- package/src/components/core/field/FieldTitle.vue +1 -1
- package/src/components/core/input/Input.vue +1 -1
- package/src/components/core/input-group/InputGroupText.vue +1 -1
- package/src/components/core/input-group/index.ts +1 -1
- package/src/components/core/item/ItemDescription.vue +1 -1
- package/src/components/core/item/ItemTitle.vue +1 -1
- package/src/components/core/item/index.ts +2 -2
- package/src/components/core/label/Label.vue +1 -1
- package/src/components/core/listbox/ListboxFilter.vue +1 -1
- package/src/components/core/listbox/ListboxGroupLabel.vue +1 -1
- package/src/components/core/listbox/ListboxItem.vue +1 -1
- package/src/components/core/native-select/NativeSelect.vue +1 -1
- package/src/components/core/navigation-menu/NavigationMenuLink.vue +1 -1
- package/src/components/core/navigation-menu/index.ts +1 -1
- package/src/components/core/popover/PopoverContent.vue +9 -3
- package/src/components/core/range-calendar/RangeCalendarCell.vue +1 -1
- package/src/components/core/range-calendar/RangeCalendarHeading.vue +1 -1
- package/src/components/core/select/SelectItem.vue +1 -1
- package/src/components/core/select/SelectLabel.vue +1 -1
- package/src/components/core/select/SelectTrigger.vue +1 -1
- package/src/components/core/sheet/SheetDescription.vue +1 -1
- package/src/components/core/sidebar/SidebarGroupContent.vue +1 -1
- package/src/components/core/sidebar/SidebarGroupLabel.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuBadge.vue +1 -1
- package/src/components/core/sidebar/SidebarMenuSubButton.vue +2 -2
- package/src/components/core/sidebar/index.ts +4 -4
- package/src/components/core/stepper/StepperDescription.vue +1 -1
- package/src/components/core/stepper/StepperTitle.vue +1 -1
- package/src/components/core/table/Table.vue +1 -1
- package/src/components/core/table/TableCaption.vue +1 -1
- package/src/components/core/table/TableEmpty.vue +1 -1
- package/src/components/core/tabs/TabsTrigger.vue +1 -1
- package/src/components/core/tags-input/TagsInput.vue +1 -1
- package/src/components/core/tags-input/TagsInputItem.vue +1 -1
- package/src/components/core/textarea/Textarea.vue +1 -1
- package/src/components/core/toggle/index.ts +1 -1
- package/src/components/core/tooltip/TooltipContent.vue +1 -1
- package/src/directives/vHover.stories.ts +17 -17
- package/src/lib/useDevice.stories.ts +29 -29
- package/src/lib/useDrag.stories.ts +14 -14
- package/src/patterns/UiDataTable/UiDataTable.stories.ts +27 -27
- package/src/patterns/UiDataTable/UiDataTableColumnFilter.vue +2 -2
- package/src/patterns/UiDataTable/UiDataTableFilterMenu.vue +2 -2
- package/src/patterns/UiDataTable/UiDataTablePagination.vue +3 -3
- package/src/patterns/UiDataTable/__tests__/UiDataTableColumnFilter.test.ts +2 -2
- package/src/patterns/UiDatePicker/UiDatePicker.stories.ts +14 -14
- package/src/patterns/UiFileUpload/UiFileItem.stories.ts +818 -32
- package/src/patterns/UiFileUpload/UiFileUpload.stories.ts +194 -12
- package/src/patterns/UiFloatActions/UiFloatActionItems.vue +226 -76
- package/src/patterns/UiFloatActions/UiFloatActions.stories.ts +1136 -116
- package/src/patterns/UiFloatActions/__tests__/UiFloatActionItems.test.ts +187 -1
- package/src/patterns/UiFloatActions/core/FloatingButton.vue +83 -0
- package/src/patterns/UiFloatActions/core/FloatingInput.vue +53 -0
- package/src/patterns/UiFloatActions/floatActionItemContext.ts +3 -1
- package/src/patterns/UiFloatActions/types.ts +106 -19
- package/src/patterns/UiLayout/UiLayoutContent.stories.ts +17 -17
- package/src/patterns/UiLayout/UiLayoutMobile.stories.ts +4 -4
- package/src/patterns/UiLayout/layout-shell.ts +6 -6
- package/src/patterns/UiProfileCard/UiProfileCard.stories.ts +8 -8
- package/src/patterns/UiProfileCard/profile-card.ts +2 -2
- package/src/patterns/UiSidebar/UiSidebar.stories.ts +6 -6
- package/src/patterns/UiSidebar/UiSidebarGroup.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.stories.ts +4 -4
- package/src/patterns/UiSidebar/UiSidebarGroupLabel.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarHeader.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarMenuButton.stories.ts +7 -7
- package/src/patterns/UiSidebar/UiSidebarMenuButton.vue +4 -4
- package/src/patterns/UiSidebar/UiSidebarMenuItem.stories.ts +4 -4
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarMenuSubItem.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenu.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverMenuItem.vue +3 -3
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.stories.ts +1 -1
- package/src/patterns/UiSidebar/UiSidebarPopoverTrigger.vue +1 -1
- package/src/patterns/UiSidebar/UiSidebarSub.stories.ts +1 -1
- package/src/patterns/UiTopBar/UiTopBar.stories.ts +24 -24
- package/src/theme/Background.stories.ts +62 -62
- package/src/theme/Border.stories.ts +19 -19
- package/src/theme/BorderRadius.stories.ts +14 -14
- package/src/theme/Extended.stories.ts +26 -26
- package/src/theme/Flex.stories.ts +21 -21
- package/src/theme/Grid.stories.ts +19 -19
- package/src/theme/HoverLayer.stories.ts +26 -26
- package/src/theme/Overlay.stories.ts +14 -14
- package/src/theme/Scrollbar.stories.ts +58 -58
- package/src/theme/Shadow.stories.ts +5 -5
- package/src/theme/Theme.stories.ts +38 -38
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
A slide-out panel for supplementary content.
|
|
78
78
|
</UiSheetDescription>
|
|
79
79
|
</UiSheetHeader>
|
|
80
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
80
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
81
81
|
Put any content here.
|
|
82
82
|
</div>
|
|
83
83
|
<UiSheetFooter>
|
|
@@ -137,7 +137,7 @@ export const Default: Story = {
|
|
|
137
137
|
A slide-out panel for supplementary content.
|
|
138
138
|
</UiSheetDescription>
|
|
139
139
|
</UiSheetHeader>
|
|
140
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
140
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
141
141
|
Put any content here.
|
|
142
142
|
</div>
|
|
143
143
|
<UiSheetFooter>
|
|
@@ -211,7 +211,7 @@ const open = ref(false)
|
|
|
211
211
|
This sheet is controlled via v-model:open.
|
|
212
212
|
</UiSheetDescription>
|
|
213
213
|
</UiSheetHeader>
|
|
214
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
214
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular gap-y-3">
|
|
215
215
|
<p>Click the buttons below to close programmatically.</p>
|
|
216
216
|
<div class="flex gap-2 flex-wrap">
|
|
217
217
|
<UiButton size="sm" @click="open = false">Close via model</UiButton>
|
|
@@ -259,7 +259,7 @@ export const Controlled: Story = {
|
|
|
259
259
|
This sheet is controlled via v-model:open.
|
|
260
260
|
</UiSheetDescription>
|
|
261
261
|
</UiSheetHeader>
|
|
262
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
262
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular gap-y-3">
|
|
263
263
|
<p>Click the buttons below to close programmatically.</p>
|
|
264
264
|
<div class="flex gap-2 flex-wrap">
|
|
265
265
|
<UiButton size="sm" @click="open = false">Close via model</UiButton>
|
|
@@ -304,7 +304,7 @@ import {
|
|
|
304
304
|
This sheet slides in from the {{ side }}.
|
|
305
305
|
</UiSheetDescription>
|
|
306
306
|
</UiSheetHeader>
|
|
307
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
307
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
308
308
|
Content for the {{ side }} sheet.
|
|
309
309
|
</div>
|
|
310
310
|
<UiSheetClose as-child>
|
|
@@ -344,7 +344,7 @@ export const SideVariants: Story = {
|
|
|
344
344
|
This sheet slides in from the {{ side }}.
|
|
345
345
|
</UiSheetDescription>
|
|
346
346
|
</UiSheetHeader>
|
|
347
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
347
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
348
348
|
Content for the {{ side }} sheet.
|
|
349
349
|
</div>
|
|
350
350
|
<UiSheetClose as-child>
|
|
@@ -377,7 +377,7 @@ import {
|
|
|
377
377
|
|
|
378
378
|
<template>
|
|
379
379
|
<div class="gap-y-4">
|
|
380
|
-
<p class="body-
|
|
380
|
+
<p class="body-s-regular text-content-on-surface-muted">
|
|
381
381
|
Non-modal sheet: you can still interact with the page while it is open.
|
|
382
382
|
</p>
|
|
383
383
|
<UiSheet :modal="false">
|
|
@@ -391,7 +391,7 @@ import {
|
|
|
391
391
|
Outside interaction is allowed.
|
|
392
392
|
</UiSheetDescription>
|
|
393
393
|
</UiSheetHeader>
|
|
394
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
394
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
395
395
|
Try selecting text outside the sheet.
|
|
396
396
|
</div>
|
|
397
397
|
<UiSheetFooter>
|
|
@@ -423,7 +423,7 @@ export const NonModal: Story = {
|
|
|
423
423
|
},
|
|
424
424
|
template: `
|
|
425
425
|
<div class="gap-y-4">
|
|
426
|
-
<p class="body-
|
|
426
|
+
<p class="body-s-regular text-content-on-surface-muted">
|
|
427
427
|
Non-modal sheet: you can still interact with the page while it is open.
|
|
428
428
|
</p>
|
|
429
429
|
<UiSheet :modal="false">
|
|
@@ -437,7 +437,7 @@ export const NonModal: Story = {
|
|
|
437
437
|
Outside interaction is allowed.
|
|
438
438
|
</UiSheetDescription>
|
|
439
439
|
</UiSheetHeader>
|
|
440
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
440
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
441
441
|
Try selecting text outside the sheet.
|
|
442
442
|
</div>
|
|
443
443
|
<UiSheetFooter>
|
|
@@ -595,7 +595,7 @@ import {
|
|
|
595
595
|
</UiSheetDescription>
|
|
596
596
|
</UiSheetHeader>
|
|
597
597
|
<div class="flex-1 overflow-auto px-4 py-4">
|
|
598
|
-
<div class="gap-y-2 body-
|
|
598
|
+
<div class="gap-y-2 body-s-regular">
|
|
599
599
|
<p v-for="i in 30" :key="i">Item {{ i }} — Lorem ipsum dolor sit amet.</p>
|
|
600
600
|
</div>
|
|
601
601
|
</div>
|
|
@@ -638,7 +638,7 @@ export const LongContent: Story = {
|
|
|
638
638
|
</UiSheetDescription>
|
|
639
639
|
</UiSheetHeader>
|
|
640
640
|
<div class="flex-1 overflow-auto px-4 py-4">
|
|
641
|
-
<div class="gap-y-2 body-
|
|
641
|
+
<div class="gap-y-2 body-s-regular">
|
|
642
642
|
<p v-for="i in 30" :key="i">Item {{ i }} — Lorem ipsum dolor sit amet.</p>
|
|
643
643
|
</div>
|
|
644
644
|
</div>
|
|
@@ -686,7 +686,7 @@ const open = ref(true)
|
|
|
686
686
|
Useful for visual regression testing.
|
|
687
687
|
</UiSheetDescription>
|
|
688
688
|
</UiSheetHeader>
|
|
689
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
689
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
690
690
|
This sheet starts open.
|
|
691
691
|
</div>
|
|
692
692
|
<UiSheetFooter>
|
|
@@ -731,7 +731,7 @@ export const OpenByDefault: Story = {
|
|
|
731
731
|
Useful for visual regression testing.
|
|
732
732
|
</UiSheetDescription>
|
|
733
733
|
</UiSheetHeader>
|
|
734
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
734
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
735
735
|
This sheet starts open.
|
|
736
736
|
</div>
|
|
737
737
|
<UiSheetFooter>
|
|
@@ -822,10 +822,10 @@ export const Accessibility: Story = {
|
|
|
822
822
|
|
|
823
823
|
<div class="flex flex-col gap-6">
|
|
824
824
|
<div class="flex flex-col gap-2">
|
|
825
|
-
<h3 class="body-
|
|
825
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
826
826
|
Always include a title
|
|
827
827
|
</h3>
|
|
828
|
-
<p class="body-
|
|
828
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
829
829
|
<code>UiSheetTitle</code> becomes the sheet's accessible name via
|
|
830
830
|
<code>aria-labelledby</code>. Without it the panel is announced as
|
|
831
831
|
an unnamed dialog, and a screen-reader user has no idea what just
|
|
@@ -834,10 +834,10 @@ export const Accessibility: Story = {
|
|
|
834
834
|
</div>
|
|
835
835
|
|
|
836
836
|
<div class="flex flex-col gap-2">
|
|
837
|
-
<h3 class="body-
|
|
837
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
838
838
|
Describe what the sheet is for
|
|
839
839
|
</h3>
|
|
840
|
-
<p class="body-
|
|
840
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
841
841
|
<code>UiSheetDescription</code> is wired up as
|
|
842
842
|
<code>aria-describedby</code>, so it is read straight after the
|
|
843
843
|
title. Keep it to one sentence that explains the purpose rather
|
|
@@ -846,10 +846,10 @@ export const Accessibility: Story = {
|
|
|
846
846
|
</div>
|
|
847
847
|
|
|
848
848
|
<div class="flex flex-col gap-2">
|
|
849
|
-
<h3 class="body-
|
|
849
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
850
850
|
Don't duplicate the built-in close
|
|
851
851
|
</h3>
|
|
852
|
-
<p class="body-
|
|
852
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
853
853
|
<code>UiSheetContent</code> already renders an X close control
|
|
854
854
|
labelled <code>Close</code>. If you also add a footer
|
|
855
855
|
<code>UiSheetClose</code>, give it a distinct label such as
|
|
@@ -861,10 +861,10 @@ export const Accessibility: Story = {
|
|
|
861
861
|
</div>
|
|
862
862
|
|
|
863
863
|
<div class="flex flex-col gap-2">
|
|
864
|
-
<h3 class="body-
|
|
864
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
865
865
|
Keep every exit available
|
|
866
866
|
</h3>
|
|
867
|
-
<p class="body-
|
|
867
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
868
868
|
A modal sheet traps focus, so it must always offer a way out. It
|
|
869
869
|
can be dismissed with <code>Escape</code>, by clicking the
|
|
870
870
|
overlay, or with either close control — and focus returns to the
|
|
@@ -873,10 +873,10 @@ export const Accessibility: Story = {
|
|
|
873
873
|
</div>
|
|
874
874
|
|
|
875
875
|
<div class="flex flex-col gap-2">
|
|
876
|
-
<h3 class="body-
|
|
876
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
877
877
|
Enable accessibility theme
|
|
878
878
|
</h3>
|
|
879
|
-
<p class="body-
|
|
879
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
880
880
|
When accessibility is required, enable our accessibility theme.
|
|
881
881
|
This increases contrast and makes sure there are no color
|
|
882
882
|
contrast issues.
|
|
@@ -886,7 +886,7 @@ export const Accessibility: Story = {
|
|
|
886
886
|
|
|
887
887
|
<div class="grid gap-4 md:grid-cols-2">
|
|
888
888
|
<div class="flex flex-col gap-3">
|
|
889
|
-
<h3 class="label-
|
|
889
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
890
890
|
Default
|
|
891
891
|
</h3>
|
|
892
892
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -901,7 +901,7 @@ export const Accessibility: Story = {
|
|
|
901
901
|
A slide-out panel for supplementary content.
|
|
902
902
|
</UiSheetDescription>
|
|
903
903
|
</UiSheetHeader>
|
|
904
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
904
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
905
905
|
Put any content here.
|
|
906
906
|
</div>
|
|
907
907
|
<UiSheetFooter>
|
|
@@ -915,7 +915,7 @@ export const Accessibility: Story = {
|
|
|
915
915
|
</div>
|
|
916
916
|
|
|
917
917
|
<div class="accessible-theme flex flex-col gap-3">
|
|
918
|
-
<h3 class="label-
|
|
918
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
919
919
|
Accessible
|
|
920
920
|
</h3>
|
|
921
921
|
<div class="flex min-h-20 items-center justify-center border border-border-surface-default p-6">
|
|
@@ -930,7 +930,7 @@ export const Accessibility: Story = {
|
|
|
930
930
|
A slide-out panel for supplementary content.
|
|
931
931
|
</UiSheetDescription>
|
|
932
932
|
</UiSheetHeader>
|
|
933
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
933
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
934
934
|
Put any content here.
|
|
935
935
|
</div>
|
|
936
936
|
<UiSheetFooter>
|
|
@@ -1075,7 +1075,7 @@ function renderTestSheet() {
|
|
|
1075
1075
|
A slide-out panel for supplementary content.
|
|
1076
1076
|
</UiSheetDescription>
|
|
1077
1077
|
</UiSheetHeader>
|
|
1078
|
-
<div class="flex-1 overflow-auto px-4 py-4 body-
|
|
1078
|
+
<div class="flex-1 overflow-auto px-4 py-4 body-s-regular">
|
|
1079
1079
|
Put any content here.
|
|
1080
1080
|
</div>
|
|
1081
1081
|
<UiSheetFooter>
|
|
@@ -81,7 +81,7 @@ const value = ref([50])
|
|
|
81
81
|
<template>
|
|
82
82
|
<div class="w-72 gap-y-3">
|
|
83
83
|
<UiSlider v-model="value" :min="0" :max="100" :step="1" />
|
|
84
|
-
<div class="body-
|
|
84
|
+
<div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
|
|
85
85
|
</div>
|
|
86
86
|
</template>`;
|
|
87
87
|
|
|
@@ -115,7 +115,7 @@ export const Default: Story = {
|
|
|
115
115
|
:orientation="args.orientation"
|
|
116
116
|
:inverted="args.inverted"
|
|
117
117
|
/>
|
|
118
|
-
<div class="body-
|
|
118
|
+
<div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value }}</div>
|
|
119
119
|
</div>
|
|
120
120
|
`,
|
|
121
121
|
}),
|
|
@@ -165,7 +165,7 @@ const range = ref([25, 75])
|
|
|
165
165
|
<template>
|
|
166
166
|
<div class="w-72 gap-y-3">
|
|
167
167
|
<UiSlider v-model="range" :min="0" :max="100" :step="1" :min-steps-between-thumbs="5" />
|
|
168
|
-
<div class="body-
|
|
168
|
+
<div class="body-s-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
|
|
169
169
|
</div>
|
|
170
170
|
</template>`;
|
|
171
171
|
|
|
@@ -183,7 +183,7 @@ export const Range: Story = {
|
|
|
183
183
|
template: `
|
|
184
184
|
<div class="w-72 gap-y-3">
|
|
185
185
|
<UiSlider v-model="range" :min="0" :max="100" :step="1" :min-steps-between-thumbs="5" />
|
|
186
|
-
<div class="body-
|
|
186
|
+
<div class="body-s-regular text-content-on-surface-muted my-4">Range: {{ range[0] }} – {{ range[1] }}</div>
|
|
187
187
|
</div>
|
|
188
188
|
`,
|
|
189
189
|
}),
|
|
@@ -233,7 +233,7 @@ const value = ref([50])
|
|
|
233
233
|
<div class="h-44">
|
|
234
234
|
<UiSlider v-model="value" orientation="vertical" />
|
|
235
235
|
</div>
|
|
236
|
-
<div class="body-
|
|
236
|
+
<div class="body-s-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
|
|
237
237
|
</div>
|
|
238
238
|
</template>`;
|
|
239
239
|
|
|
@@ -253,7 +253,7 @@ export const Vertical: Story = {
|
|
|
253
253
|
<div class="h-44">
|
|
254
254
|
<UiSlider v-model="value" orientation="vertical" />
|
|
255
255
|
</div>
|
|
256
|
-
<div class="body-
|
|
256
|
+
<div class="body-s-regular text-content-on-surface-muted">Value: {{ value[0] }}</div>
|
|
257
257
|
</div>
|
|
258
258
|
`,
|
|
259
259
|
}),
|
|
@@ -287,7 +287,7 @@ const value = ref([50])
|
|
|
287
287
|
<template>
|
|
288
288
|
<div class="w-72 gap-y-3">
|
|
289
289
|
<UiSlider v-model="value" disabled />
|
|
290
|
-
<div class="body-
|
|
290
|
+
<div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
|
|
291
291
|
</div>
|
|
292
292
|
</template>`;
|
|
293
293
|
|
|
@@ -305,7 +305,7 @@ export const Disabled: Story = {
|
|
|
305
305
|
template: `
|
|
306
306
|
<div class="w-72 gap-y-3">
|
|
307
307
|
<UiSlider v-model="value" disabled />
|
|
308
|
-
<div class="body-
|
|
308
|
+
<div class="body-s-regular text-content-on-surface-muted my-4">Value: {{ value[0] }}</div>
|
|
309
309
|
</div>
|
|
310
310
|
`,
|
|
311
311
|
}),
|
|
@@ -369,10 +369,10 @@ export const Accessibility: Story = {
|
|
|
369
369
|
|
|
370
370
|
<div class="flex flex-col gap-6">
|
|
371
371
|
<div class="flex flex-col gap-2">
|
|
372
|
-
<h3 class="body-
|
|
372
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
373
373
|
Label what the slider controls
|
|
374
374
|
</h3>
|
|
375
|
-
<p class="body-
|
|
375
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
376
376
|
Each handle is announced as a slider named <code>Value</code>
|
|
377
377
|
(<code>Value 1</code> / <code>Value 2</code> for a range), which
|
|
378
378
|
says nothing about what is being adjusted. Put a visible heading
|
|
@@ -382,10 +382,10 @@ export const Accessibility: Story = {
|
|
|
382
382
|
</div>
|
|
383
383
|
|
|
384
384
|
<div class="flex flex-col gap-2">
|
|
385
|
-
<h3 class="body-
|
|
385
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
386
386
|
Show the current value as text
|
|
387
387
|
</h3>
|
|
388
|
-
<p class="body-
|
|
388
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
389
389
|
Handle position alone is not perceivable for everyone. Render the
|
|
390
390
|
value next to the slider so it can be read, magnified, and
|
|
391
391
|
translated — the same number assistive technology gets from
|
|
@@ -394,10 +394,10 @@ export const Accessibility: Story = {
|
|
|
394
394
|
</div>
|
|
395
395
|
|
|
396
396
|
<div class="flex flex-col gap-2">
|
|
397
|
-
<h3 class="body-
|
|
397
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
398
398
|
Keep it keyboard operable
|
|
399
399
|
</h3>
|
|
400
|
-
<p class="body-
|
|
400
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
401
401
|
Every handle is a Tab stop and moves with the arrow keys.
|
|
402
402
|
<code>Home</code> and <code>End</code> jump to the minimum and
|
|
403
403
|
maximum, and <code>Page Up</code> / <code>Page Down</code> (or
|
|
@@ -407,10 +407,10 @@ export const Accessibility: Story = {
|
|
|
407
407
|
</div>
|
|
408
408
|
|
|
409
409
|
<div class="flex flex-col gap-2">
|
|
410
|
-
<h3 class="body-
|
|
410
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
411
411
|
Give small handles room
|
|
412
412
|
</h3>
|
|
413
|
-
<p class="body-
|
|
413
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
414
414
|
The handle is smaller than the 24px minimum target size, so it
|
|
415
415
|
relies on the WCAG 2.5.8 spacing exception: keep other controls
|
|
416
416
|
at least 24px away, and don't crowd several sliders together.
|
|
@@ -418,10 +418,10 @@ export const Accessibility: Story = {
|
|
|
418
418
|
</div>
|
|
419
419
|
|
|
420
420
|
<div class="flex flex-col gap-2">
|
|
421
|
-
<h3 class="body-
|
|
421
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
422
422
|
Enable accessibility theme
|
|
423
423
|
</h3>
|
|
424
|
-
<p class="body-
|
|
424
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
425
425
|
When accessibility is required, enable our accessibility theme.
|
|
426
426
|
This increases contrast and makes sure there are no color
|
|
427
427
|
contrast issues.
|
|
@@ -431,28 +431,28 @@ export const Accessibility: Story = {
|
|
|
431
431
|
|
|
432
432
|
<div class="grid gap-4 md:grid-cols-2">
|
|
433
433
|
<div class="flex flex-col gap-3">
|
|
434
|
-
<h3 class="label-
|
|
434
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
435
435
|
Default
|
|
436
436
|
</h3>
|
|
437
437
|
<div class="flex min-h-20 flex-col justify-center border border-border-surface-default p-6">
|
|
438
|
-
<p class="label-
|
|
438
|
+
<p class="label-s-medium text-content-on-surface-primary">Volume</p>
|
|
439
439
|
<div class="my-3">
|
|
440
440
|
<UiSlider v-model="defaultValue" />
|
|
441
441
|
</div>
|
|
442
|
-
<p class="body-
|
|
442
|
+
<p class="body-s-regular text-content-on-surface-muted">Value: {{ defaultValue[0] }}</p>
|
|
443
443
|
</div>
|
|
444
444
|
</div>
|
|
445
445
|
|
|
446
446
|
<div class="accessible-theme flex flex-col gap-3">
|
|
447
|
-
<h3 class="label-
|
|
447
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
448
448
|
Accessible
|
|
449
449
|
</h3>
|
|
450
450
|
<div class="flex min-h-20 flex-col justify-center border border-border-surface-default p-6">
|
|
451
|
-
<p class="label-
|
|
451
|
+
<p class="label-s-medium text-content-on-surface-primary">Volume</p>
|
|
452
452
|
<div class="my-3">
|
|
453
453
|
<UiSlider v-model="accessibleValue" />
|
|
454
454
|
</div>
|
|
455
|
-
<p class="body-
|
|
455
|
+
<p class="body-s-regular text-content-on-surface-muted">Value: {{ accessibleValue[0] }}</p>
|
|
456
456
|
</div>
|
|
457
457
|
</div>
|
|
458
458
|
</div>
|
|
@@ -517,7 +517,7 @@ function renderControlledSlider(step = 5) {
|
|
|
517
517
|
},
|
|
518
518
|
template: `
|
|
519
519
|
<div class="w-full max-w-72">
|
|
520
|
-
<p class="label-
|
|
520
|
+
<p class="label-s-medium text-content-on-surface-primary">Volume</p>
|
|
521
521
|
<div class="my-3">
|
|
522
522
|
<UiSlider
|
|
523
523
|
:model-value="value"
|
|
@@ -528,7 +528,7 @@ function renderControlledSlider(step = 5) {
|
|
|
528
528
|
@value-commit="onValueCommit"
|
|
529
529
|
/>
|
|
530
530
|
</div>
|
|
531
|
-
<p class="body-
|
|
531
|
+
<p class="body-s-regular text-content-on-surface-muted">Value: {{ value[0] }}</p>
|
|
532
532
|
</div>
|
|
533
533
|
`,
|
|
534
534
|
};
|
|
@@ -661,7 +661,7 @@ export const KeyboardRangeNavigation: Story = {
|
|
|
661
661
|
},
|
|
662
662
|
template: `
|
|
663
663
|
<div class="w-full max-w-72">
|
|
664
|
-
<p class="label-
|
|
664
|
+
<p class="label-s-medium text-content-on-surface-primary">Price range</p>
|
|
665
665
|
<div class="my-3">
|
|
666
666
|
<UiSlider
|
|
667
667
|
:model-value="range"
|
|
@@ -672,7 +672,7 @@ export const KeyboardRangeNavigation: Story = {
|
|
|
672
672
|
@update:model-value="update"
|
|
673
673
|
/>
|
|
674
674
|
</div>
|
|
675
|
-
<p class="body-
|
|
675
|
+
<p class="body-s-regular text-content-on-surface-muted">Range: {{ range[0] }} – {{ range[1] }}</p>
|
|
676
676
|
</div>
|
|
677
677
|
`,
|
|
678
678
|
}),
|
|
@@ -1053,10 +1053,10 @@ export const Accessibility: Story = {
|
|
|
1053
1053
|
</h2>
|
|
1054
1054
|
|
|
1055
1055
|
<div class="flex flex-col gap-2">
|
|
1056
|
-
<h3 class="body-
|
|
1056
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1057
1057
|
Requirements
|
|
1058
1058
|
</h3>
|
|
1059
|
-
<ul class="body-
|
|
1059
|
+
<ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
|
|
1060
1060
|
<li>The outcome is carried by the icon and the words, so colour is never the only signal</li>
|
|
1061
1061
|
<li>Success, error and warning are distinguishable by icon shape, not only by hue</li>
|
|
1062
1062
|
<li>Text holds contrast against the snackbar's own surface, which sits over arbitrary content</li>
|
|
@@ -1067,10 +1067,10 @@ export const Accessibility: Story = {
|
|
|
1067
1067
|
</div>
|
|
1068
1068
|
|
|
1069
1069
|
<div class="flex flex-col gap-2">
|
|
1070
|
-
<h3 class="body-
|
|
1070
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
1071
1071
|
Enable accessibility theme
|
|
1072
1072
|
</h3>
|
|
1073
|
-
<p class="body-
|
|
1073
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
1074
1074
|
When accessibility is required, enable our accessibility theme.
|
|
1075
1075
|
This increases contrast and ensures there are no color contrast
|
|
1076
1076
|
issues.
|
|
@@ -1079,7 +1079,7 @@ export const Accessibility: Story = {
|
|
|
1079
1079
|
|
|
1080
1080
|
<div class="grid gap-4 md:grid-cols-2">
|
|
1081
1081
|
<div class="flex flex-col gap-3">
|
|
1082
|
-
<h3 class="label-
|
|
1082
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1083
1083
|
Default
|
|
1084
1084
|
</h3>
|
|
1085
1085
|
<div class="flex justify-center border border-border-surface-default p-6">
|
|
@@ -1097,7 +1097,7 @@ export const Accessibility: Story = {
|
|
|
1097
1097
|
</div>
|
|
1098
1098
|
|
|
1099
1099
|
<div class="accessible-theme flex flex-col gap-3">
|
|
1100
|
-
<h3 class="label-
|
|
1100
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
1101
1101
|
Accessible
|
|
1102
1102
|
</h3>
|
|
1103
1103
|
<div class="flex justify-center border border-border-surface-default p-6">
|
|
@@ -19,8 +19,8 @@ const toasterProps = computed(() => ({
|
|
|
19
19
|
toastOptions: {
|
|
20
20
|
...props.toastOptions,
|
|
21
21
|
classes: {
|
|
22
|
-
title: 'body-
|
|
23
|
-
description: 'body-
|
|
22
|
+
title: 'body-s-medium text-content-on-surface-primary',
|
|
23
|
+
description: 'body-s-regular text-content-on-surface-muted',
|
|
24
24
|
...props.toastOptions?.classes,
|
|
25
25
|
},
|
|
26
26
|
},
|
|
@@ -66,14 +66,14 @@ const showCloseButton = computed(
|
|
|
66
66
|
|
|
67
67
|
<div class="flex min-w-0 flex-1 flex-col gap-1">
|
|
68
68
|
<p
|
|
69
|
-
class="body-
|
|
69
|
+
class="body-s-medium text-content-on-surface-primary"
|
|
70
70
|
data-slot="snackbar-title"
|
|
71
71
|
>
|
|
72
72
|
{{ props.title }}
|
|
73
73
|
</p>
|
|
74
74
|
<p
|
|
75
75
|
v-if="props.description || $slots.description"
|
|
76
|
-
class="body-
|
|
76
|
+
class="body-s-regular text-content-on-surface-muted"
|
|
77
77
|
data-slot="snackbar-description"
|
|
78
78
|
>
|
|
79
79
|
<slot name="description">{{ props.description }}</slot>
|
|
@@ -64,19 +64,19 @@ import { UiSpinner } from '@aleph-alpha/ui-library'
|
|
|
64
64
|
<template>
|
|
65
65
|
<div class="flex items-end gap-6">
|
|
66
66
|
<div class="flex flex-col items-center gap-2">
|
|
67
|
-
<span class="text-content-on-surface-muted label-
|
|
67
|
+
<span class="text-content-on-surface-muted label-xs-regular">default</span>
|
|
68
68
|
<UiSpinner />
|
|
69
69
|
</div>
|
|
70
70
|
<div class="flex flex-col items-center gap-2">
|
|
71
|
-
<span class="text-content-on-surface-muted label-
|
|
71
|
+
<span class="text-content-on-surface-muted label-xs-regular">size-6</span>
|
|
72
72
|
<UiSpinner class="size-6" />
|
|
73
73
|
</div>
|
|
74
74
|
<div class="flex flex-col items-center gap-2">
|
|
75
|
-
<span class="text-content-on-surface-muted label-
|
|
75
|
+
<span class="text-content-on-surface-muted label-xs-regular">size-8</span>
|
|
76
76
|
<UiSpinner class="size-8" />
|
|
77
77
|
</div>
|
|
78
78
|
<div class="flex flex-col items-center gap-2">
|
|
79
|
-
<span class="text-content-on-surface-muted label-
|
|
79
|
+
<span class="text-content-on-surface-muted label-xs-regular">size-12</span>
|
|
80
80
|
<UiSpinner class="size-12" />
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
@@ -90,19 +90,19 @@ export const Sizes: Story = {
|
|
|
90
90
|
components: { UiSpinner },
|
|
91
91
|
template: `<div class="flex items-end gap-6">
|
|
92
92
|
<div class="flex flex-col items-center gap-2">
|
|
93
|
-
<span class="text-content-on-surface-muted label-
|
|
93
|
+
<span class="text-content-on-surface-muted label-xs-regular">default</span>
|
|
94
94
|
<UiSpinner />
|
|
95
95
|
</div>
|
|
96
96
|
<div class="flex flex-col items-center gap-2">
|
|
97
|
-
<span class="text-content-on-surface-muted label-
|
|
97
|
+
<span class="text-content-on-surface-muted label-xs-regular">size-6</span>
|
|
98
98
|
<UiSpinner class="size-6" />
|
|
99
99
|
</div>
|
|
100
100
|
<div class="flex flex-col items-center gap-2">
|
|
101
|
-
<span class="text-content-on-surface-muted label-
|
|
101
|
+
<span class="text-content-on-surface-muted label-xs-regular">size-8</span>
|
|
102
102
|
<UiSpinner class="size-8" />
|
|
103
103
|
</div>
|
|
104
104
|
<div class="flex flex-col items-center gap-2">
|
|
105
|
-
<span class="text-content-on-surface-muted label-
|
|
105
|
+
<span class="text-content-on-surface-muted label-xs-regular">size-12</span>
|
|
106
106
|
<UiSpinner class="size-12" />
|
|
107
107
|
</div>
|
|
108
108
|
</div>`,
|
|
@@ -501,10 +501,10 @@ export const Accessibility: Story = {
|
|
|
501
501
|
</h2>
|
|
502
502
|
|
|
503
503
|
<div class="flex flex-col gap-2">
|
|
504
|
-
<h3 class="body-
|
|
504
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
505
505
|
Requirements
|
|
506
506
|
</h3>
|
|
507
|
-
<ul class="body-
|
|
507
|
+
<ul class="body-m-regular flex list-disc flex-col gap-1 pl-6 text-content-on-surface-primary">
|
|
508
508
|
<li>Complete, active and pending differ in shape and weight, not colour alone</li>
|
|
509
509
|
<li>The complete state carries a mark, such as a tick, rather than only a fill change</li>
|
|
510
510
|
<li>Labels stay legible at the sm size and when they wrap</li>
|
|
@@ -517,10 +517,10 @@ export const Accessibility: Story = {
|
|
|
517
517
|
</div>
|
|
518
518
|
|
|
519
519
|
<div class="flex flex-col gap-2">
|
|
520
|
-
<h3 class="body-
|
|
520
|
+
<h3 class="body-m-medium text-content-on-surface-primary">
|
|
521
521
|
Enable accessibility theme
|
|
522
522
|
</h3>
|
|
523
|
-
<p class="body-
|
|
523
|
+
<p class="body-m-regular text-content-on-surface-primary">
|
|
524
524
|
When accessibility is required, enable our accessibility theme.
|
|
525
525
|
This increases contrast and ensures there are no color contrast
|
|
526
526
|
issues.
|
|
@@ -529,7 +529,7 @@ export const Accessibility: Story = {
|
|
|
529
529
|
|
|
530
530
|
<div class="grid gap-4 md:grid-cols-2">
|
|
531
531
|
<div class="flex flex-col gap-3">
|
|
532
|
-
<h3 class="label-
|
|
532
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
533
533
|
Default
|
|
534
534
|
</h3>
|
|
535
535
|
<div class="flex justify-center border border-border-surface-default p-6">
|
|
@@ -556,7 +556,7 @@ export const Accessibility: Story = {
|
|
|
556
556
|
</div>
|
|
557
557
|
|
|
558
558
|
<div class="accessible-theme flex flex-col gap-3">
|
|
559
|
-
<h3 class="label-
|
|
559
|
+
<h3 class="label-m-medium text-center text-content-on-surface-primary">
|
|
560
560
|
Accessible
|
|
561
561
|
</h3>
|
|
562
562
|
<div class="flex justify-center border border-border-surface-default p-6">
|