@kaizen/components 1.78.1 → 1.79.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.
Files changed (204) hide show
  1. package/dist/styles.css +10589 -10782
  2. package/package.json +1 -1
  3. package/src/Avatar/Avatar.module.css +137 -135
  4. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  5. package/src/Badge/Badge.module.css +98 -96
  6. package/src/Brand/Brand.module.css +5 -3
  7. package/src/BrandMoment/BrandMoment.module.css +147 -145
  8. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  9. package/src/Button/Button/Button.module.scss +135 -133
  10. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  11. package/src/Button/IconButton/IconButton.module.scss +20 -18
  12. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  13. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  14. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  15. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  16. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  17. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  18. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  19. package/src/Card/Card.module.css +91 -89
  20. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  21. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  22. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  23. package/src/ClearButton/ClearButton.module.scss +32 -30
  24. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  25. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  26. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  27. package/src/Container/Container.module.scss +11 -9
  28. package/src/Content/Content.module.scss +10 -8
  29. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  30. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  31. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  32. package/src/DatePicker/DatePicker.module.scss +7 -5
  33. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  34. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  35. package/src/Divider/Divider.module.scss +35 -33
  36. package/src/EmptyState/EmptyState.module.css +95 -93
  37. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  38. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  39. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  40. package/src/Filter/Filter/Filter.module.css +5 -3
  41. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  42. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  43. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  44. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  45. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  46. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  47. package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
  48. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
  49. package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
  50. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
  51. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
  52. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
  53. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
  54. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
  55. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
  56. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
  57. package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
  58. package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
  59. package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
  60. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
  61. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
  62. package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
  63. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
  64. package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
  65. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
  66. package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
  67. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
  68. package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
  69. package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
  70. package/src/Focusable/Focusable.module.scss +4 -2
  71. package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
  72. package/src/Heading/Heading.module.scss +87 -85
  73. package/src/Icon/_docs/icon.module.scss +35 -33
  74. package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
  75. package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
  76. package/src/Input/Input/Input.module.scss +217 -215
  77. package/src/Input/InputRange/InputRange.module.scss +138 -136
  78. package/src/Input/InputSearch/InputSearch.module.scss +155 -152
  79. package/src/Label/Label.module.scss +82 -80
  80. package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
  81. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
  82. package/src/Link/Link.module.css +115 -113
  83. package/src/LinkButton/LinkButton.module.css +5 -3
  84. package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
  85. package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
  86. package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
  87. package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
  88. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
  89. package/src/Loading/_mixins.scss +11 -9
  90. package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
  91. package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
  92. package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
  93. package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
  94. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
  95. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
  96. package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
  97. package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
  98. package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
  99. package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
  100. package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
  101. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
  102. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
  103. package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
  104. package/src/MultiSelect/MultiSelect.module.scss +7 -5
  105. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
  106. package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
  107. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
  108. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
  109. package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
  110. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
  111. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
  112. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
  113. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
  114. package/src/Pagination/Pagination.module.scss +39 -37
  115. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
  116. package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
  117. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
  118. package/src/Popover/Popover.module.scss +187 -185
  119. package/src/ProgressBar/ProgressBar.module.scss +75 -73
  120. package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
  121. package/src/Radio/Radio/Radio.module.scss +60 -58
  122. package/src/Radio/RadioField/RadioField.module.scss +33 -31
  123. package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
  124. package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
  125. package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
  126. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
  127. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
  128. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
  129. package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
  130. package/src/RichTextEditor/_mixins.scss +1 -1
  131. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
  132. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
  133. package/src/SearchField/SearchField.module.scss +5 -3
  134. package/src/Select/Select.module.scss +17 -0
  135. package/src/Skirt/Skirt.module.scss +24 -22
  136. package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
  137. package/src/Slider/Slider.module.scss +34 -32
  138. package/src/SplitButton/SplitButton.module.scss +5 -3
  139. package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
  140. package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
  141. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
  142. package/src/Table/Table.module.scss +251 -249
  143. package/src/Tabs/subcomponents/Tab.module.scss +81 -79
  144. package/src/Tabs/subcomponents/TabList.module.scss +8 -6
  145. package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
  146. package/src/Tag/Tag.module.scss +166 -164
  147. package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
  148. package/src/Text/Text.module.scss +57 -55
  149. package/src/TextArea/TextArea.module.css +102 -99
  150. package/src/TextAreaField/TextAreaField.module.scss +14 -12
  151. package/src/TextField/TextField.module.scss +16 -14
  152. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
  153. package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
  154. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
  155. package/src/TimeField/TimeField.module.scss +57 -55
  156. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
  157. package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
  158. package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
  159. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
  160. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
  161. package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
  162. package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
  163. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
  164. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
  165. package/src/Tooltip/Tooltip.module.scss +139 -137
  166. package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
  167. package/src/Well/Well.module.css +104 -102
  168. package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
  169. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
  170. package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
  171. package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
  172. package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
  173. package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
  174. package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
  175. package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
  176. package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
  177. package/src/__next__/Button/Button.module.css +220 -218
  178. package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
  179. package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
  180. package/src/__next__/Icon/Icon.module.css +40 -38
  181. package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
  182. package/src/__next__/Menu/Menu.module.css +30 -28
  183. package/src/__next__/Menu/MenuItem.module.css +41 -39
  184. package/src/__next__/Select/Select.module.scss +8 -6
  185. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  186. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  187. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  188. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  189. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  190. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  191. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  192. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  193. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  194. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  195. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  196. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  197. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  198. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  199. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  200. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  201. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  202. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
  203. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  204. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -1,16 +1,18 @@
1
1
  @import '../../../styles/utils/legacy/layout';
2
2
  @import '../mixins';
3
3
 
4
- .mainActionsContainer {
5
- display: flex;
6
- align-items: center;
7
- justify-content: flex-end;
8
- flex-grow: 1;
9
- flex-shrink: 0;
4
+ @layer kz-components {
5
+ .mainActionsContainer {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: flex-end;
9
+ flex-grow: 1;
10
+ flex-shrink: 0;
10
11
 
11
- @include ca-margin($start: calc(#{$ca-grid} / 2));
12
+ @include ca-margin($start: calc(#{$ca-grid} / 2));
12
13
 
13
- @include title-block-small {
14
- display: none;
14
+ @include title-block-small {
15
+ display: none;
16
+ }
15
17
  }
16
18
  }
@@ -8,186 +8,189 @@
8
8
  @import '../../../styles/utils/layers';
9
9
  @import '../mixins';
10
10
 
11
- $expand-button-width: 3.75rem;
12
- $focus-spacing: 2px;
13
- $focus-ring-border-width: 2px; // should be $border-focus-ring-border-width but CSS vars makes this hard
14
- $space-for-focus-ring: ($focus-ring-border-width * 2) + ($focus-spacing * 2);
15
- $slide-up-duration: 0.4s;
16
-
17
- /* stylelint-disable no-descending-specificity */
18
- .mobileActionsContainer {
19
- display: none;
20
- z-index: $ca-z-index-fixed;
21
- flex-direction: column;
22
- position: fixed;
23
- bottom: 0;
24
- left: 0;
25
- right: 0;
26
- border-start-start-radius: $border-solid-border-radius;
27
- border-start-end-radius: $border-solid-border-radius;
28
- -webkit-font-smoothing: antialiased;
29
- -moz-osx-font-smoothing: grayscale;
30
- overflow: hidden;
31
- transform: translateY(calc(100% - #{$layout-mobile-actions-drawer-height}));
32
- transition: $slide-up-duration ease;
33
- animation: slide-up 1s ease;
34
-
35
- &.isOpen {
36
- transform: translateY(0%);
37
-
38
- .mobileActionsMenuContainer {
39
- visibility: visible;
11
+ @layer kz-components {
12
+ $expand-button-width: 3.75rem;
13
+ $focus-spacing: 2px;
14
+ $focus-ring-border-width: 2px; // should be $border-focus-ring-border-width but CSS vars makes this hard
15
+ $space-for-focus-ring: ($focus-ring-border-width * 2) + ($focus-spacing * 2);
16
+ $slide-up-duration: 0.4s;
17
+
18
+ /* stylelint-disable no-descending-specificity */
19
+ .mobileActionsContainer {
20
+ display: none;
21
+ z-index: $ca-z-index-fixed;
22
+ flex-direction: column;
23
+ position: fixed;
24
+ bottom: 0;
25
+ left: 0;
26
+ right: 0;
27
+ border-start-start-radius: $border-solid-border-radius;
28
+ border-start-end-radius: $border-solid-border-radius;
29
+ -webkit-font-smoothing: antialiased;
30
+ -moz-osx-font-smoothing: grayscale;
31
+ overflow: hidden;
32
+ transform: translateY(calc(100% - #{$layout-mobile-actions-drawer-height}));
33
+ transition: $slide-up-duration ease;
34
+ animation: slide-up 1s ease;
35
+
36
+ &.isOpen {
37
+ transform: translateY(0%);
38
+
39
+ .mobileActionsMenuContainer {
40
+ visibility: visible;
41
+ }
42
+ }
43
+
44
+ @include title-block-small {
45
+ display: flex;
40
46
  }
41
47
  }
42
48
 
43
- @include title-block-small {
49
+ .mobileActionsTopRow {
44
50
  display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ height: $layout-mobile-actions-drawer-height;
45
54
  }
46
- }
47
-
48
- .mobileActionsTopRow {
49
- display: flex;
50
- align-items: center;
51
- justify-content: space-between;
52
- height: $layout-mobile-actions-drawer-height;
53
- }
54
55
 
55
- .mobileActionsTopRow.mobileActionsTopRowSingleButton {
56
- justify-content: center;
57
- }
56
+ .mobileActionsTopRow.mobileActionsTopRowSingleButton {
57
+ justify-content: center;
58
+ }
58
59
 
59
- .mobileActionsMenuContainer {
60
- visibility: hidden;
61
- width: 100%;
62
- background: $color-white;
63
- padding: $spacing-xs 0;
64
- transition: visibility $slide-up-duration;
65
- }
60
+ .mobileActionsMenuContainer {
61
+ visibility: hidden;
62
+ width: 100%;
63
+ background: $color-white;
64
+ padding: $spacing-xs 0;
65
+ transition: visibility $slide-up-duration;
66
+ }
66
67
 
67
- .drawerHandleIcon {
68
- display: flex;
69
- justify-content: center;
70
- align-items: center;
68
+ .drawerHandleIcon {
69
+ display: flex;
70
+ justify-content: center;
71
+ align-items: center;
71
72
 
72
- @include ca-margin($end: calc(#{$ca-grid} / 2));
73
+ @include ca-margin($end: calc(#{$ca-grid} / 2));
73
74
 
74
- .drawerHandleLabelText + & {
75
- @include ca-margin($start: calc(#{$ca-grid} / 2));
75
+ .drawerHandleLabelText + & {
76
+ @include ca-margin($start: calc(#{$ca-grid} / 2));
77
+ }
76
78
  }
77
- }
78
79
 
79
- .mobileActionsPrimaryLabel {
80
- text-align: left;
81
- text-decoration: none;
82
- color: $color-white;
83
- font-family: $typography-button-primary-font-family;
84
- font-weight: $typography-button-primary-font-weight;
85
- font-size: $typography-button-primary-font-size;
86
- line-height: $typography-button-primary-line-height;
87
- letter-spacing: $typography-button-primary-letter-spacing;
88
-
89
- @include ca-padding($start: $ca-grid * 0.75);
90
- }
91
-
92
- .mobileActionsPrimaryButton,
93
- .mobileActionsExpandButton {
94
- display: flex;
95
- position: relative;
96
- justify-content: flex-start;
97
- align-items: center;
98
- height: 100%;
99
- border: 0;
100
- box-sizing: border-box;
101
- color: $color-white;
102
- background-color: $color-blue-500;
103
-
104
- &:focus {
105
- background-color: $color-blue-600;
106
- outline: none;
80
+ .mobileActionsPrimaryLabel {
81
+ text-align: left;
82
+ text-decoration: none;
83
+ color: $color-white;
84
+ font-family: $typography-button-primary-font-family;
85
+ font-weight: $typography-button-primary-font-weight;
86
+ font-size: $typography-button-primary-font-size;
87
+ line-height: $typography-button-primary-line-height;
88
+ letter-spacing: $typography-button-primary-letter-spacing;
89
+
90
+ @include ca-padding($start: $ca-grid * 0.75);
107
91
  }
108
92
 
109
- &:focus-visible {
110
- height: $layout-mobile-actions-drawer-height - $space-for-focus-ring;
93
+ .mobileActionsPrimaryButton,
94
+ .mobileActionsExpandButton {
95
+ display: flex;
96
+ position: relative;
97
+ justify-content: flex-start;
98
+ align-items: center;
99
+ height: 100%;
100
+ border: 0;
101
+ box-sizing: border-box;
102
+ color: $color-white;
103
+ background-color: $color-blue-500;
104
+
105
+ &:focus {
106
+ background-color: $color-blue-600;
107
+ outline: none;
108
+ }
109
+
110
+ &:focus-visible {
111
+ height: $layout-mobile-actions-drawer-height - $space-for-focus-ring;
111
112
 
112
- &::after {
113
- $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2));
113
+ &::after {
114
+ $focus-ring-offset: calc((#{$border-focus-ring-border-width} * 2));
114
115
 
115
- content: '';
116
- position: absolute;
117
- background: transparent;
118
- border-width: $focus-ring-border-width;
119
- border-style: $border-focus-ring-border-style;
120
- border-color: $color-blue-500;
121
- inset: calc(-1 * #{$focus-ring-offset});
116
+ content: '';
117
+ position: absolute;
118
+ background: transparent;
119
+ border-width: $focus-ring-border-width;
120
+ border-style: $border-focus-ring-border-style;
121
+ border-color: $color-blue-500;
122
+ inset: calc(-1 * #{$focus-ring-offset});
123
+ }
122
124
  }
123
- }
124
125
 
125
- &:hover {
126
- text-decoration: none;
126
+ &:hover {
127
+ text-decoration: none;
128
+ }
127
129
  }
128
- }
129
130
 
130
- // Full width versions
131
- .mobileActionsPrimaryButton:only-child,
132
- .mobileActionsExpandButton:only-child {
133
- flex-basis: 100%;
134
- border-start-start-radius: $border-solid-border-radius;
135
- border-start-end-radius: $border-solid-border-radius;
131
+ // Full width versions
132
+ .mobileActionsPrimaryButton:only-child,
133
+ .mobileActionsExpandButton:only-child {
134
+ flex-basis: 100%;
135
+ border-start-start-radius: $border-solid-border-radius;
136
+ border-start-end-radius: $border-solid-border-radius;
136
137
 
137
- &:focus-visible {
138
- flex-basis: calc(100% - #{$space-for-focus-ring});
138
+ &:focus-visible {
139
+ flex-basis: calc(100% - #{$space-for-focus-ring});
139
140
 
140
- &::after {
141
- border-start-start-radius: $border-focus-ring-border-radius;
142
- border-start-end-radius: $border-focus-ring-border-radius;
141
+ &::after {
142
+ border-start-start-radius: $border-focus-ring-border-radius;
143
+ border-start-end-radius: $border-focus-ring-border-radius;
144
+ }
143
145
  }
144
146
  }
145
- }
146
147
 
147
- // Non full width versions
148
- .mobileActionsPrimaryButton:not(:only-child) {
149
- flex: 0 0 calc(100% - #{$expand-button-width});
148
+ // Non full width versions
149
+ .mobileActionsPrimaryButton:not(:only-child) {
150
+ flex: 0 0 calc(100% - #{$expand-button-width});
150
151
 
151
- &:focus-visible {
152
- flex-basis: calc(100% - #{$expand-button-width} - #{$space-for-focus-ring});
153
- margin-left: $focus-ring-border-width * 2;
154
- border-start-start-radius: $border-solid-border-radius;
152
+ &:focus-visible {
153
+ flex-basis: calc(100% - #{$expand-button-width} - #{$space-for-focus-ring});
154
+ margin-left: $focus-ring-border-width * 2;
155
+ border-start-start-radius: $border-solid-border-radius;
155
156
 
156
- & + .mobileActionsExpandButton {
157
- border-color: $color-white;
158
- }
157
+ & + .mobileActionsExpandButton {
158
+ border-color: $color-white;
159
+ }
159
160
 
160
- &::after {
161
- border-start-start-radius: $border-focus-ring-border-radius;
161
+ &::after {
162
+ border-start-start-radius: $border-focus-ring-border-radius;
163
+ }
162
164
  }
163
165
  }
164
- }
165
166
 
166
- .mobileActionsExpandButton:not(:only-child) {
167
- flex: 0 0 $expand-button-width;
168
- border-left: 2px solid $color-blue-200;
169
- justify-content: center;
167
+ .mobileActionsExpandButton:not(:only-child) {
168
+ flex: 0 0 $expand-button-width;
169
+ border-left: 2px solid $color-blue-200;
170
+ justify-content: center;
170
171
 
171
- &:focus-visible {
172
- border-color: $color-white;
173
- flex-basis: calc(#{$expand-button-width} - #{$space-for-focus-ring});
174
- margin-right: $focus-ring-border-width * 2;
175
- border-start-end-radius: $border-solid-border-radius;
172
+ &:focus-visible {
173
+ border-color: $color-white;
174
+ flex-basis: calc(#{$expand-button-width} - #{$space-for-focus-ring});
175
+ margin-right: $focus-ring-border-width * 2;
176
+ border-start-end-radius: $border-solid-border-radius;
176
177
 
177
- &::after {
178
- border-start-end-radius: $border-focus-ring-border-radius;
178
+ &::after {
179
+ border-start-end-radius: $border-focus-ring-border-radius;
180
+ }
179
181
  }
180
182
  }
181
- }
182
183
 
183
- .mobileActionsChevronSquare {
184
- display: flex;
185
- justify-content: center;
186
- align-items: center;
187
- height: 100%;
188
- position: absolute;
184
+ .mobileActionsChevronSquare {
185
+ display: flex;
186
+ justify-content: center;
187
+ align-items: center;
188
+ height: 100%;
189
+ position: absolute;
189
190
 
190
- @include ca-position($end: 20px);
191
+ @include ca-position($end: 20px);
192
+ }
193
+ /* stylelint-enable no-descending-specificity */
191
194
  }
192
195
 
193
196
  @keyframes slide-up {
@@ -203,4 +206,3 @@ $slide-up-duration: 0.4s;
203
206
  transform: translateY(calc(100% - #{$layout-mobile-actions-drawer-height}));
204
207
  }
205
208
  }
206
- /* stylelint-enable no-descending-specificity */
@@ -4,132 +4,134 @@
4
4
  @import '~@kaizen/design-tokens/sass/color';
5
5
  @import '../mixins';
6
6
 
7
- .container {
8
- display: flex;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
7
+ @layer kz-components {
8
+ .container {
9
+ display: flex;
10
+ -webkit-font-smoothing: antialiased;
11
+ -moz-osx-font-smoothing: grayscale;
12
+ }
12
13
 
13
- .linkAnchor {
14
- display: flex;
15
- height: 100%;
16
- align-items: center;
17
- padding: 0 $spacing-sm;
18
- position: relative;
19
- color: rgba($color-white-rgb, 0.7);
20
- font-family: $typography-heading-4-font-family;
21
- font-weight: $typography-heading-4-font-weight;
22
- font-size: $typography-heading-4-font-size;
23
- line-height: $typography-heading-4-line-height;
24
- letter-spacing: $typography-heading-4-letter-spacing;
25
- text-decoration: none;
26
- white-space: nowrap;
27
- margin-inline-end: $spacing-md;
28
-
29
- &:hover {
30
- color: $color-white;
14
+ .linkAnchor {
15
+ display: flex;
16
+ height: 100%;
17
+ align-items: center;
18
+ padding: 0 $spacing-sm;
19
+ position: relative;
20
+ color: rgba($color-white-rgb, 0.7);
21
+ font-family: $typography-heading-4-font-family;
22
+ font-weight: $typography-heading-4-font-weight;
23
+ font-size: $typography-heading-4-font-size;
24
+ line-height: $typography-heading-4-line-height;
25
+ letter-spacing: $typography-heading-4-letter-spacing;
31
26
  text-decoration: none;
32
- }
27
+ white-space: nowrap;
28
+ margin-inline-end: $spacing-md;
33
29
 
34
- @include title-block-under-1366 {
35
- font-family: $typography-heading-5-font-family;
36
- font-weight: $typography-heading-5-font-weight;
37
- font-size: $typography-heading-5-font-size;
38
- line-height: $typography-heading-5-line-height;
39
- letter-spacing: $typography-heading-5-letter-spacing;
40
- }
30
+ &:hover {
31
+ color: $color-white;
32
+ text-decoration: none;
33
+ }
41
34
 
42
- @include title-block-under-1440 {
43
- margin-inline-end: $spacing-xs;
44
- }
35
+ @include title-block-under-1366 {
36
+ font-family: $typography-heading-5-font-family;
37
+ font-weight: $typography-heading-5-font-weight;
38
+ font-size: $typography-heading-5-font-size;
39
+ line-height: $typography-heading-5-line-height;
40
+ letter-spacing: $typography-heading-5-letter-spacing;
41
+ }
45
42
 
46
- @media (max-width: 1189px) {
47
- margin: 0;
48
- }
43
+ @include title-block-under-1440 {
44
+ margin-inline-end: $spacing-xs;
45
+ }
49
46
 
50
- $active-tab-marker-height: 5px;
51
-
52
- &.active,
53
- &:focus {
54
- color: $color-white;
55
-
56
- &::before {
57
- content: '';
58
- display: block;
59
- height: $active-tab-marker-height;
60
- position: absolute;
61
- top: 0;
62
- left: 0;
63
- right: 0;
64
- background-color: $color-white;
65
- transition: transform cubic-bezier(0.55, 0.085, 0.68, 0.53) 150ms;
66
- border-radius: 0 0 $border-solid-border-radius $border-solid-border-radius;
67
-
68
- @include title-block-medium-and-small {
69
- top: auto;
70
- bottom: 0;
71
- border-radius: $border-solid-border-radius $border-solid-border-radius 0 0;
72
- }
47
+ @media (max-width: 1189px) {
48
+ margin: 0;
73
49
  }
74
- }
75
50
 
76
- &:focus {
77
- outline: none;
51
+ $active-tab-marker-height: 5px;
78
52
 
79
- &::before {
80
- background-color: $color-blue-200;
81
- }
53
+ &.active,
54
+ &:focus {
55
+ color: $color-white;
82
56
 
83
- &::after {
84
- $focus-ring-offset: calc((-1 * #{$border-focus-ring-border-width}));
85
-
86
- content: '';
87
- position: absolute;
88
- background: transparent;
89
- border-color: $color-blue-200;
90
- border-radius: 0 0 $border-focus-ring-border-radius $border-focus-ring-border-radius;
91
- border-width: $border-focus-ring-border-width;
92
- border-style: $border-focus-ring-border-style;
93
- inset: 0 $focus-ring-offset $active-tab-marker-height;
94
-
95
- @include title-block-medium-and-small {
96
- border-radius: $border-focus-ring-border-radius $border-focus-ring-border-radius 0 0;
97
- inset: $active-tab-marker-height $focus-ring-offset 0 $focus-ring-offset;
57
+ &::before {
58
+ content: '';
59
+ display: block;
60
+ height: $active-tab-marker-height;
61
+ position: absolute;
62
+ top: 0;
63
+ left: 0;
64
+ right: 0;
65
+ background-color: $color-white;
66
+ transition: transform cubic-bezier(0.55, 0.085, 0.68, 0.53) 150ms;
67
+ border-radius: 0 0 $border-solid-border-radius $border-solid-border-radius;
68
+
69
+ @include title-block-medium-and-small {
70
+ top: auto;
71
+ bottom: 0;
72
+ border-radius: $border-solid-border-radius $border-solid-border-radius 0 0;
73
+ }
98
74
  }
99
75
  }
100
- }
101
76
 
102
- @media (forced-colors: active) {
103
- &.active,
104
77
  &:focus {
78
+ outline: none;
79
+
105
80
  &::before {
81
+ background-color: $color-blue-200;
82
+ }
83
+
84
+ &::after {
85
+ $focus-ring-offset: calc((-1 * #{$border-focus-ring-border-width}));
86
+
87
+ content: '';
88
+ position: absolute;
106
89
  background: transparent;
107
- // instead of height we're using the border to create a active tab mark to make it friendlier for Windows High Contrast Mode.
108
- border: $active-tab-marker-height solid transparent;
109
- height: 0;
90
+ border-color: $color-blue-200;
91
+ border-radius: 0 0 $border-focus-ring-border-radius $border-focus-ring-border-radius;
92
+ border-width: $border-focus-ring-border-width;
93
+ border-style: $border-focus-ring-border-style;
94
+ inset: 0 $focus-ring-offset $active-tab-marker-height;
95
+
96
+ @include title-block-medium-and-small {
97
+ border-radius: $border-focus-ring-border-radius $border-focus-ring-border-radius 0 0;
98
+ inset: $active-tab-marker-height $focus-ring-offset 0 $focus-ring-offset;
99
+ }
110
100
  }
111
101
  }
112
- }
113
- }
114
-
115
- .linkAnchor.lightBackground {
116
- color: rgba($color-purple-800-rgb, 0.75);
117
102
 
118
- &:hover {
119
- color: $color-blue-500;
103
+ @media (forced-colors: active) {
104
+ &.active,
105
+ &:focus {
106
+ &::before {
107
+ background: transparent;
108
+ // instead of height we're using the border to create a active tab mark to make it friendlier for Windows High Contrast Mode.
109
+ border: $active-tab-marker-height solid transparent;
110
+ height: 0;
111
+ }
112
+ }
113
+ }
120
114
  }
121
115
 
122
- &.active {
123
- color: $color-blue-500;
116
+ .linkAnchor.lightBackground {
117
+ color: rgba($color-purple-800-rgb, 0.75);
124
118
 
125
- &::before {
126
- background-color: $color-blue-500;
127
- top: 3px;
119
+ &:hover {
120
+ color: $color-blue-500;
121
+ }
122
+
123
+ &.active {
124
+ color: $color-blue-500;
128
125
 
129
- @include title-block-medium-and-small {
130
- top: auto;
131
- bottom: 0;
132
- border-radius: $border-solid-border-radius $border-solid-border-radius 0 0;
126
+ &::before {
127
+ background-color: $color-blue-500;
128
+ top: 3px;
129
+
130
+ @include title-block-medium-and-small {
131
+ top: auto;
132
+ bottom: 0;
133
+ border-radius: $border-solid-border-radius $border-solid-border-radius 0 0;
134
+ }
133
135
  }
134
136
  }
135
137
  }