@kaizen/components 1.78.0 → 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 (207) hide show
  1. package/dist/cjs/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.cjs +1 -1
  2. package/dist/esm/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.mjs +1 -1
  3. package/dist/styles.css +9823 -10017
  4. package/package.json +27 -26
  5. package/src/Avatar/Avatar.module.css +137 -135
  6. package/src/AvatarGroup/AvatarGroup.module.css +58 -56
  7. package/src/Badge/Badge.module.css +98 -96
  8. package/src/Brand/Brand.module.css +5 -3
  9. package/src/BrandMoment/BrandMoment.module.css +147 -145
  10. package/src/BrandMoment/_docs/ExampleHeaders.module.scss +68 -66
  11. package/src/Button/Button/Button.module.scss +135 -133
  12. package/src/Button/GenericButton/GenericButton.module.scss +81 -79
  13. package/src/Button/IconButton/IconButton.module.scss +20 -18
  14. package/src/ButtonGroup/ButtonGroup.module.css +38 -36
  15. package/src/ButtonGroup/ButtonGroup.module.scss +41 -39
  16. package/src/Calendar/CalendarPopover/CalendarPopover.module.scss +19 -17
  17. package/src/Calendar/CalendarRange/CalendarRange.module.scss +48 -46
  18. package/src/Calendar/CalendarSingle/CalendarSingle.module.scss +12 -10
  19. package/src/Calendar/LegacyCalendarRange/LegacyCalendarRange.module.scss +20 -18
  20. package/src/Calendar/baseCalendarClassNames.module.scss +148 -146
  21. package/src/Card/Card.module.css +91 -89
  22. package/src/Checkbox/Checkbox/Checkbox.module.scss +89 -87
  23. package/src/Checkbox/CheckboxField/CheckboxField.module.scss +32 -30
  24. package/src/Checkbox/CheckboxGroup/CheckboxGroup.module.scss +11 -9
  25. package/src/ClearButton/ClearButton.module.scss +32 -30
  26. package/src/Collapsible/Collapsible/Collapsible.module.scss +87 -85
  27. package/src/Collapsible/CollapsibleGroup/CollapsibleGroup.module.scss +9 -7
  28. package/src/Collapsible/ExpertAdviceCollapsible/ExpertAdviceCollapsible.module.scss +35 -33
  29. package/src/Container/Container.module.scss +11 -9
  30. package/src/Content/Content.module.scss +10 -8
  31. package/src/DateInput/DateInput/DateInput.module.scss +7 -5
  32. package/src/DateInput/DateInputDescription/DateInputDescription.module.scss +15 -13
  33. package/src/DateInput/DateInputWithIconButton/DateInputWithIconButton.module.scss +32 -30
  34. package/src/DatePicker/DatePicker.module.scss +7 -5
  35. package/src/DatePicker/subcomponents/DateInputField/DateInputField.module.scss +5 -3
  36. package/src/DateRangePicker/DateRangePicker.module.scss +75 -73
  37. package/src/Divider/Divider.module.scss +35 -33
  38. package/src/EmptyState/EmptyState.module.css +95 -93
  39. package/src/ErrorPage/ErrorPage.module.scss +4 -2
  40. package/src/FieldGroup/FieldGroup.module.scss +8 -6
  41. package/src/FieldMessage/FieldMessage.module.scss +53 -51
  42. package/src/Filter/Filter/Filter.module.css +5 -3
  43. package/src/Filter/Filter/subcomponents/FilterContents/FilterContents.module.css +4 -2
  44. package/src/Filter/Filter/subcomponents/FilterPopover/FilterPopover.module.css +8 -6
  45. package/src/Filter/FilterBar/FilterBar.module.css +17 -15
  46. package/src/Filter/FilterBar/subcomponents/ClearAllButton/ClearAllButton.module.css +7 -5
  47. package/src/Filter/FilterBar/subcomponents/FilterBarButton/FilterBarButton.module.css +4 -2
  48. package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.module.css +5 -3
  49. package/src/Filter/FilterBar/subcomponents/FilterBarSelect/FilterBarSelect.tsx +1 -1
  50. package/src/Filter/FilterButton/FilterButton/FilterButton.module.css +19 -17
  51. package/src/Filter/FilterButton/FilterButtonRemovable/FilterButtonRemovable.module.css +4 -2
  52. package/src/Filter/FilterButton/subcomponents/FilterButtonBase/FilterButtonBase.module.scss +42 -40
  53. package/src/Filter/FilterDatePicker/subcomponents/DateInputField/DateInputField.module.scss +4 -2
  54. package/src/Filter/FilterDatePicker/subcomponents/FilterDatePickerField/FilterDatePickerField.module.scss +6 -4
  55. package/src/Filter/FilterDateRangePicker/FilterDateRangePicker.module.css +7 -5
  56. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeDisplayLabel/DateRangeDisplayLabel.module.scss +5 -3
  57. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeInputField/DateRangeInputField.module.scss +36 -34
  58. package/src/Filter/FilterDateRangePicker/subcomponents/DateRangeValidationMessage/DateRangeValidationMessage.module.scss +5 -3
  59. package/src/Filter/FilterDateRangePicker/subcomponents/FilterDateRangePickerField/FilterDateRangePickerField.module.scss +7 -5
  60. package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +19 -17
  61. package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.module.scss +14 -12
  62. package/src/Filter/FilterMultiSelect/subcomponents/LoadMoreButton/LoadMoreButton.module.scss +4 -2
  63. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuFooter/MenuFooter.module.scss +7 -5
  64. package/src/Filter/FilterMultiSelect/subcomponents/MenuLayout/MenuLoadingSkeleton/MenuLoadingSkeleton.module.scss +8 -6
  65. package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +17 -15
  66. package/src/Filter/FilterMultiSelect/subcomponents/MultiSelectOption/MultiSelectOption.module.scss +90 -88
  67. package/src/Filter/FilterMultiSelect/subcomponents/NoResults/NoResults.module.scss +4 -2
  68. package/src/Filter/FilterMultiSelect/subcomponents/SearchInput/SearchInput.module.scss +5 -3
  69. package/src/Filter/FilterMultiSelect/subcomponents/SectionDivider/SectionDivider.module.scss +4 -2
  70. package/src/Filter/FilterMultiSelect/subcomponents/SelectionControlButton/SelectionControlButton.module.scss +52 -50
  71. package/src/Filter/FilterMultiSelect/subcomponents/Trigger/RemovableFilterTrigger/RemovableFilterTrigger.module.css +4 -2
  72. package/src/Filter/FilterSelect/FilterSelect.module.css +9 -7
  73. package/src/Focusable/Focusable.module.scss +4 -2
  74. package/src/GuidanceBlock/GuidanceBlock.module.css +212 -210
  75. package/src/Heading/Heading.module.scss +87 -85
  76. package/src/Icon/_docs/icon.module.scss +35 -33
  77. package/src/Icon/subcomponents/SVG/SVG.module.scss +26 -24
  78. package/src/Illustration/subcomponents/Base/Base.module.scss +100 -98
  79. package/src/Input/Input/Input.module.scss +217 -215
  80. package/src/Input/InputRange/InputRange.module.scss +138 -136
  81. package/src/Input/InputSearch/InputSearch.module.scss +155 -152
  82. package/src/Label/Label.module.scss +82 -80
  83. package/src/LabelledMessage/LabelledMessage.module.scss +8 -6
  84. package/src/LikertScaleLegacy/LikertScaleLegacy.module.scss +266 -264
  85. package/src/Link/Link.module.css +115 -113
  86. package/src/LinkButton/LinkButton.module.css +5 -3
  87. package/src/Loading/LoadingGraphic/LoadingGraphic.module.scss +12 -10
  88. package/src/Loading/LoadingHeading/LoadingHeading.module.scss +44 -42
  89. package/src/Loading/LoadingInput/LoadingInput.module.scss +11 -9
  90. package/src/Loading/LoadingParagraph/LoadingParagraph.module.scss +47 -45
  91. package/src/Loading/LoadingSpinner/LoadingSpinner.module.css +22 -20
  92. package/src/Loading/_mixins.scss +11 -9
  93. package/src/Menu/subcomponents/MenuDropdown/MenuDropdown.module.scss +18 -16
  94. package/src/Menu/subcomponents/MenuHeading/MenuHeading.module.scss +8 -6
  95. package/src/Menu/subcomponents/MenuItem/MenuItem.module.scss +74 -72
  96. package/src/Menu/subcomponents/MenuList/MenuList.module.scss +14 -12
  97. package/src/Menu/subcomponents/StatelessMenu/StatelessMenu.module.scss +4 -2
  98. package/src/Modal/ConfirmationModal/ConfirmationModal.module.scss +126 -124
  99. package/src/Modal/ContextModal/ContextModal.module.scss +72 -70
  100. package/src/Modal/GenericModal/GenericModal.module.scss +92 -90
  101. package/src/Modal/GenericModal/subcomponents/ModalAccessibleDescription/ModalAccessibleDescription.module.scss +4 -2
  102. package/src/Modal/GenericModal/subcomponents/ModalAccessibleLabel/ModalAccessibleLabel.module.scss +25 -23
  103. package/src/Modal/GenericModal/subcomponents/ModalBody/ModalBody.module.scss +5 -3
  104. package/src/Modal/GenericModal/subcomponents/ModalFooter/ModalFooter.module.scss +55 -53
  105. package/src/Modal/GenericModal/subcomponents/ModalHeader/ModalHeader.module.scss +17 -15
  106. package/src/Modal/InputEditModal/InputEditModal.module.scss +32 -30
  107. package/src/MultiSelect/MultiSelect.module.scss +7 -5
  108. package/src/MultiSelect/subcomponents/Checkbox/Checkbox.module.scss +59 -57
  109. package/src/MultiSelect/subcomponents/MultiSelectOptionField/MultiSelectOptionField.module.scss +55 -53
  110. package/src/MultiSelect/subcomponents/MultiSelectOptions/MultiSelectOptions.module.scss +8 -6
  111. package/src/MultiSelect/subcomponents/MultiSelectToggle/MultiSelectToggle.module.scss +66 -64
  112. package/src/MultiSelect/subcomponents/Popover/Popover.module.scss +15 -13
  113. package/src/Notification/ToastNotification/ToastNotificationsList/ToastNotificationsList.module.scss +21 -19
  114. package/src/Notification/subcomponents/GenericNotification/GenericNotification.module.scss +112 -110
  115. package/src/Notification/subcomponents/GenericNotification/_mixins.scss +278 -276
  116. package/src/Notification/subcomponents/NotificationIcon/NotificationIcon.module.css +4 -2
  117. package/src/Pagination/Pagination.module.scss +39 -37
  118. package/src/Pagination/subcomponents/DirectionalLink/DirectionalLink.module.scss +11 -9
  119. package/src/Pagination/subcomponents/PaginationLink/PaginationLink.module.scss +53 -51
  120. package/src/Pagination/subcomponents/TruncateIndicator/TruncateIndicator.module.css +10 -8
  121. package/src/Popover/Popover.module.scss +187 -185
  122. package/src/ProgressBar/ProgressBar.module.scss +75 -73
  123. package/src/ProgressBar/subcomponents/Label/Label.module.scss +6 -4
  124. package/src/Radio/Radio/Radio.module.scss +60 -58
  125. package/src/Radio/RadioField/RadioField.module.scss +33 -32
  126. package/src/Radio/RadioGroup/RadioGroup.module.scss +18 -16
  127. package/src/RichTextEditor/EditableRichTextContent/EditableRichTextContent.module.scss +32 -30
  128. package/src/RichTextEditor/RichTextContent/RichTextContent.module.scss +4 -2
  129. package/src/RichTextEditor/RichTextEditor/RichTextEditor.module.scss +76 -74
  130. package/src/RichTextEditor/RichTextEditor/subcomponents/ToggleIconButton/ToggleIconButton.module.scss +92 -90
  131. package/src/RichTextEditor/RichTextEditor/subcomponents/Toolbar/Toolbar.module.scss +5 -3
  132. package/src/RichTextEditor/RichTextEditor/subcomponents/ToolbarSection/ToolbarSection.module.scss +12 -10
  133. package/src/RichTextEditor/_mixins.scss +1 -1
  134. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkModal/LinkModal.module.scss +5 -3
  135. package/src/RichTextEditor/utils/plugins/LinkManager/components/LinkPopover/LinkPopover.module.scss +22 -20
  136. package/src/SearchField/SearchField.module.scss +5 -3
  137. package/src/Select/Select.module.scss +17 -0
  138. package/src/Skirt/Skirt.module.scss +24 -22
  139. package/src/Skirt/subcomponents/SkirtCard/SkirtCard.module.scss +13 -11
  140. package/src/Slider/Slider.module.scss +34 -32
  141. package/src/SplitButton/SplitButton.module.scss +5 -3
  142. package/src/SplitButton/subcomponents/ActionButton/ActionButton.module.scss +7 -5
  143. package/src/SplitButton/subcomponents/BaseButton/BaseButton.module.scss +65 -63
  144. package/src/SplitButton/subcomponents/DropdownButton/DropdownButton.module.scss +19 -17
  145. package/src/Table/Table.module.scss +251 -249
  146. package/src/Tabs/subcomponents/Tab.module.scss +81 -79
  147. package/src/Tabs/subcomponents/TabList.module.scss +8 -6
  148. package/src/Tabs/subcomponents/TabPanel.module.scss +10 -8
  149. package/src/Tag/Tag.module.scss +166 -164
  150. package/src/Tag/subcomponents/LiveIcon/LiveIcon.module.css +42 -40
  151. package/src/Text/Text.module.scss +57 -55
  152. package/src/TextArea/TextArea.module.css +103 -100
  153. package/src/TextAreaField/TextAreaField.module.scss +14 -12
  154. package/src/TextField/TextField.module.scss +16 -14
  155. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +7 -5
  156. package/src/Tile/TileGrid/TileGrid.module.scss +18 -16
  157. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +123 -121
  158. package/src/TimeField/TimeField.module.scss +57 -55
  159. package/src/TimeField/subcomponents/TimeSegment/TimeSegment.module.scss +37 -35
  160. package/src/TitleBlockZen/TitleBlockZen.module.scss +507 -505
  161. package/src/TitleBlockZen/subcomponents/MainActions.module.scss +11 -9
  162. package/src/TitleBlockZen/subcomponents/MobileActions.module.scss +146 -144
  163. package/src/TitleBlockZen/subcomponents/NavigationTabs.module.scss +105 -103
  164. package/src/TitleBlockZen/subcomponents/TitleBlockMenuItem.module.scss +74 -72
  165. package/src/TitleBlockZen/subcomponents/Toolbar.module.scss +28 -26
  166. package/src/ToggleSwitch/ToggleSwitch/ToggleSwitch.module.scss +105 -103
  167. package/src/ToggleSwitch/ToggleSwitchField/ToggleSwitchField.module.scss +11 -9
  168. package/src/Tooltip/Tooltip.module.scss +139 -137
  169. package/src/VisuallyHidden/VisuallyHidden.module.scss +10 -8
  170. package/src/Well/Well.module.css +104 -102
  171. package/src/Workflow/subcomponents/Footer/components/FooterActions/FooterActions.module.css +14 -12
  172. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.module.css +101 -99
  173. package/src/Workflow/subcomponents/Footer/components/Root/FooterRoot.module.css +19 -17
  174. package/src/Workflow/subcomponents/Header/components/Actions/Actions.module.css +14 -12
  175. package/src/Workflow/subcomponents/Header/components/Branding/Branding.module.css +12 -10
  176. package/src/Workflow/subcomponents/Header/components/Root/Root.module.css +19 -17
  177. package/src/Workflow/subcomponents/Header/components/Titles/Titles.module.css +19 -17
  178. package/src/Workflow/subcomponents/Main/Main.module.css +5 -3
  179. package/src/Workflow/subcomponents/Wrapper/Wrapper.module.css +8 -6
  180. package/src/__next__/Button/Button.module.css +220 -218
  181. package/src/__next__/Button/subcomponents/ButtonContent/ButtonContent.module.css +17 -15
  182. package/src/__next__/Button/subcomponents/PendingContent/PendingContent.module.css +15 -13
  183. package/src/__next__/Icon/Icon.module.css +40 -38
  184. package/src/__next__/Icon/_docs/Icon.docs.module.css +13 -11
  185. package/src/__next__/Menu/Menu.module.css +30 -28
  186. package/src/__next__/Menu/MenuItem.module.css +41 -39
  187. package/src/__next__/Select/Select.module.scss +8 -6
  188. package/src/__next__/Select/subcomponents/ListBox/ListBox.module.scss +12 -10
  189. package/src/__next__/Select/subcomponents/ListBoxSection/ListBoxSection.module.scss +15 -13
  190. package/src/__next__/Select/subcomponents/Option/Option.module.scss +53 -51
  191. package/src/__next__/Select/subcomponents/SectionDivider/SectionDivider.module.scss +8 -6
  192. package/src/__next__/Select/subcomponents/SelectPopoverContents/SelectPopoverContents.module.scss +4 -2
  193. package/src/__next__/Select/subcomponents/SelectToggle/SelectToggle.module.scss +105 -103
  194. package/src/__next__/Tabs/subcomponents/Tab/Tab.module.css +81 -79
  195. package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +56 -54
  196. package/src/__next__/Tabs/subcomponents/TabPanel/TabPanel.module.css +10 -8
  197. package/src/__next__/Tag/RemovableTag/RemovableTag.module.scss +6 -4
  198. package/src/__next__/Tag/RemovableTag/subcomponents/RemoveButton.module.scss +26 -24
  199. package/src/__next__/Tag/Tag/Tag.module.scss +56 -54
  200. package/src/__next__/Tooltip/OverlayArrow.module.scss +40 -38
  201. package/src/__next__/Tooltip/Tooltip.module.scss +39 -37
  202. package/src/__next__/Tooltip/_docs/ApiSpecification.mdx +2 -2
  203. package/src/__next__/Tooltip/_docs/Tooltip.docs.stories.tsx +15 -30
  204. package/src/__next__/Tooltip/_docs/Tooltip.mdx +1 -1
  205. package/src/__next__/Tooltip/_docs/Tooltip.spec.stories.tsx +21 -58
  206. package/src/__next__/Tooltip/_docs/Tooltip.stories.tsx +2 -2
  207. package/src/utils/AppearanceAnim.module.scss +14 -12
@@ -2,363 +2,365 @@
2
2
  @import '~@kaizen/design-tokens/sass/color';
3
3
  @import '~@kaizen/design-tokens/sass/spacing';
4
4
 
5
- /* stylelint-disable no-descending-specificity */
6
- @mixin respond-to($media) {
7
- @if $media == print {
8
- @media only print {
9
- @content;
10
- }
11
- } @else if $media == iphone {
12
- @media only screen and (max-width: 767px) {
13
- @content;
14
- }
15
- } @else if $media == ipad {
16
- @media only screen and (max-width: 959px) {
17
- @content;
5
+ @layer kz-components {
6
+ /* stylelint-disable no-descending-specificity */
7
+ @mixin respond-to($media) {
8
+ @if $media == print {
9
+ @media only print {
10
+ @content;
11
+ }
12
+ } @else if $media == iphone {
13
+ @media only screen and (max-width: 767px) {
14
+ @content;
15
+ }
16
+ } @else if $media == ipad {
17
+ @media only screen and (max-width: 959px) {
18
+ @content;
19
+ }
18
20
  }
19
21
  }
20
- }
21
22
 
22
- $block-height: 35px;
23
- $desktop-rater-width: 220px;
24
- $desktop-rater-height: 63px;
23
+ $block-height: 35px;
24
+ $desktop-rater-width: 220px;
25
+ $desktop-rater-height: 63px;
25
26
 
26
- $classical-first: $color-yellow-300;
27
- $classical-second: $color-yellow-400;
28
- $classical-third: $color-orange-400;
29
- $classical-fourth: $color-orange-500;
30
- $classical-fifth: $color-red-500;
27
+ $classical-first: $color-yellow-300;
28
+ $classical-second: $color-yellow-400;
29
+ $classical-third: $color-orange-400;
30
+ $classical-fourth: $color-orange-500;
31
+ $classical-fifth: $color-red-500;
31
32
 
32
- $blue-first: $color-blue-100;
33
- $blue-second: $color-blue-200;
34
- $blue-third: $color-blue-300;
35
- $blue-fourth: $color-blue-400;
36
- $blue-fifth: $color-blue-500;
33
+ $blue-first: $color-blue-100;
34
+ $blue-second: $color-blue-200;
35
+ $blue-third: $color-blue-300;
36
+ $blue-fourth: $color-blue-400;
37
+ $blue-fifth: $color-blue-500;
37
38
 
38
- @mixin pop {
39
- -webkit-animation: pop cubic-bezier(0, 0.94, 0.32, 1) 0.7s 1;
40
- }
41
-
42
- @mixin fill($height) {
43
- &:first-child .likertItemFill,
44
- &:first-child .likertItemFill::after {
45
- border-start-start-radius: $height;
46
- border-end-start-radius: $height;
39
+ @mixin pop {
40
+ -webkit-animation: pop cubic-bezier(0, 0.94, 0.32, 1) 0.7s 1;
47
41
  }
48
42
 
49
- &:last-child .likertItemFill,
50
- &:last-child .likertItemFill::after {
51
- border-start-end-radius: $height;
52
- border-end-end-radius: $height;
53
- }
54
- }
43
+ @mixin fill($height) {
44
+ &:first-child .likertItemFill,
45
+ &:first-child .likertItemFill::after {
46
+ border-start-start-radius: $height;
47
+ border-end-start-radius: $height;
48
+ }
55
49
 
56
- @keyframes pop {
57
- 0% {
58
- opacity: 50%;
59
- -webkit-transform: scale(1);
50
+ &:last-child .likertItemFill,
51
+ &:last-child .likertItemFill::after {
52
+ border-start-end-radius: $height;
53
+ border-end-end-radius: $height;
54
+ }
60
55
  }
61
56
 
62
- 100% {
63
- opacity: 0%;
64
- -webkit-transform: scale(1.78);
65
- }
66
- }
57
+ .container {
58
+ width: $desktop-rater-width;
59
+ position: relative;
60
+ box-sizing: border-box;
67
61
 
68
- .container {
69
- width: $desktop-rater-width;
70
- position: relative;
71
- box-sizing: border-box;
62
+ @include respond-to(iphone) {
63
+ width: 258px;
64
+ position: static;
65
+ }
72
66
 
73
- @include respond-to(iphone) {
74
- width: 258px;
75
- position: static;
76
- }
67
+ &.rated .likertItem.unselected .likertItemFill {
68
+ transition: background 0.1s;
69
+ }
77
70
 
78
- &.rated .likertItem.unselected .likertItemFill {
79
- transition: background 0.1s;
80
- }
71
+ &.reversed.rated .likertItem.unselected .likertItemFill {
72
+ background-color: transparent;
73
+ border-color: rgba($color-white-rgb, 0.65);
74
+ }
81
75
 
82
- &.reversed.rated .likertItem.unselected .likertItemFill {
83
- background-color: transparent;
84
- border-color: rgba($color-white-rgb, 0.65);
85
- }
76
+ :where(.likertItem4, .likertItem5) .check {
77
+ color: white;
78
+ }
86
79
 
87
- :where(.likertItem4, .likertItem5) .check {
88
- color: white;
80
+ :is(.likertItem4.suggested, .likertItem5.suggested) .check {
81
+ color: white;
82
+ }
89
83
  }
90
84
 
91
- :is(.likertItem4.suggested, .likertItem5.suggested) .check {
92
- color: white;
85
+ .likertItem:focus,
86
+ .likertItemFill:focus {
87
+ outline: none;
93
88
  }
94
- }
95
89
 
96
- .likertItem:focus,
97
- .likertItemFill:focus {
98
- outline: none;
99
- }
100
-
101
- .likertItem:focus-visible .likertItemFill {
102
- outline-offset: 1px;
103
- outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
104
- }
90
+ .likertItem:focus-visible .likertItemFill {
91
+ outline-offset: 1px;
92
+ outline: $color-blue-500 $border-focus-ring-border-style $border-focus-ring-border-width;
93
+ }
105
94
 
106
- .reversed .likertItem:focus-visible .likertItemFill {
107
- outline-color: $color-blue-300;
108
- }
95
+ .reversed .likertItem:focus-visible .likertItemFill {
96
+ outline-color: $color-blue-300;
97
+ }
109
98
 
110
- .itemContainer {
111
- width: 100%;
112
- white-space: nowrap;
113
- display: inline-block;
114
- height: $block-height + 2px;
115
- font-size: 0;
116
- }
99
+ .itemContainer {
100
+ width: 100%;
101
+ white-space: nowrap;
102
+ display: inline-block;
103
+ height: $block-height + 2px;
104
+ font-size: 0;
105
+ }
117
106
 
118
- .legend {
119
- text-align: center;
120
- position: absolute;
121
- top: calc(-1 * #{$spacing-md});
122
- left: 0;
123
- right: 0;
107
+ .legend {
108
+ text-align: center;
109
+ position: absolute;
110
+ top: calc(-1 * #{$spacing-md});
111
+ left: 0;
112
+ right: 0;
124
113
 
125
- @include respond-to(iphone) {
126
- position: initial;
127
- top: 0;
114
+ @include respond-to(iphone) {
115
+ position: initial;
116
+ top: 0;
117
+ }
128
118
  }
129
- }
130
-
131
- .likertItem {
132
- margin-inline: 2px;
133
- font-size: 1px;
134
- line-height: 1;
135
- padding: 0;
136
- overflow-x: visible;
137
- display: inline-block;
138
- width: 18.5%; // 5 columns
139
- position: relative;
140
119
 
141
- @include fill($block-height);
120
+ .likertItem {
121
+ margin-inline: 2px;
122
+ font-size: 1px;
123
+ line-height: 1;
124
+ padding: 0;
125
+ overflow-x: visible;
126
+ display: inline-block;
127
+ width: 18.5%; // 5 columns
128
+ position: relative;
142
129
 
143
- &:first-child {
144
- margin-inline-start: 0;
145
- }
130
+ @include fill($block-height);
146
131
 
147
- &:last-child {
148
- margin-inline-end: 0;
149
- }
132
+ &:first-child {
133
+ margin-inline-start: 0;
134
+ }
150
135
 
151
- // Hack to bridge the gaps between items so mouse always hovers on something
152
- &::before,
153
- &::after {
154
- content: '';
155
- position: absolute;
156
- top: 0;
157
- right: 100%;
158
- width: 2px;
159
- height: 100%;
160
- }
136
+ &:last-child {
137
+ margin-inline-end: 0;
138
+ }
161
139
 
162
- &::after {
163
- right: auto;
164
- left: 100%;
165
- }
140
+ // Hack to bridge the gaps between items so mouse always hovers on something
141
+ &::before,
142
+ &::after {
143
+ content: '';
144
+ position: absolute;
145
+ top: 0;
146
+ right: 100%;
147
+ width: 2px;
148
+ height: 100%;
149
+ }
166
150
 
167
- &.suggested.classicalColorSchema,
168
- &.selected.classicalColorSchema {
169
- .field1 {
170
- background-color: $classical-first;
151
+ &::after {
152
+ right: auto;
153
+ left: 100%;
154
+ }
171
155
 
172
- &::after {
156
+ &.suggested.classicalColorSchema,
157
+ &.selected.classicalColorSchema {
158
+ .field1 {
173
159
  background-color: $classical-first;
174
- }
175
- }
176
160
 
177
- .field2 {
178
- background-color: $classical-second;
161
+ &::after {
162
+ background-color: $classical-first;
163
+ }
164
+ }
179
165
 
180
- &::after {
166
+ .field2 {
181
167
  background-color: $classical-second;
182
- }
183
- }
184
168
 
185
- .field3 {
186
- background-color: $classical-third;
169
+ &::after {
170
+ background-color: $classical-second;
171
+ }
172
+ }
187
173
 
188
- &::after {
174
+ .field3 {
189
175
  background-color: $classical-third;
190
- }
191
- }
192
176
 
193
- .field4 {
194
- background-color: $classical-fourth;
177
+ &::after {
178
+ background-color: $classical-third;
179
+ }
180
+ }
195
181
 
196
- &::after {
182
+ .field4 {
197
183
  background-color: $classical-fourth;
198
- }
199
- }
200
184
 
201
- .field5 {
202
- background-color: $classical-fifth;
185
+ &::after {
186
+ background-color: $classical-fourth;
187
+ }
188
+ }
203
189
 
204
- &::after {
190
+ .field5 {
205
191
  background-color: $classical-fifth;
192
+
193
+ &::after {
194
+ background-color: $classical-fifth;
195
+ }
206
196
  }
207
197
  }
208
- }
209
-
210
- &.suggested.blueColorSchema,
211
- &.selected.blueColorSchema {
212
- .field1 {
213
- background-color: $blue-first;
214
198
 
215
- &::after {
199
+ &.suggested.blueColorSchema,
200
+ &.selected.blueColorSchema {
201
+ .field1 {
216
202
  background-color: $blue-first;
217
- }
218
- }
219
203
 
220
- .field2 {
221
- background-color: $blue-second;
204
+ &::after {
205
+ background-color: $blue-first;
206
+ }
207
+ }
222
208
 
223
- &::after {
209
+ .field2 {
224
210
  background-color: $blue-second;
225
- }
226
- }
227
211
 
228
- .field3 {
229
- background-color: $blue-third;
212
+ &::after {
213
+ background-color: $blue-second;
214
+ }
215
+ }
230
216
 
231
- &::after {
217
+ .field3 {
232
218
  background-color: $blue-third;
233
- }
234
- }
235
219
 
236
- .field4 {
237
- background-color: $blue-fourth;
220
+ &::after {
221
+ background-color: $blue-third;
222
+ }
223
+ }
238
224
 
239
- &::after {
225
+ .field4 {
240
226
  background-color: $blue-fourth;
241
- }
242
- }
243
227
 
244
- .field5 {
245
- background-color: $blue-fifth;
228
+ &::after {
229
+ background-color: $blue-fourth;
230
+ }
231
+ }
246
232
 
247
- &::after {
233
+ .field5 {
248
234
  background-color: $blue-fifth;
235
+
236
+ &::after {
237
+ background-color: $blue-fifth;
238
+ }
249
239
  }
250
240
  }
251
241
  }
252
- }
253
-
254
- .likertItemFill {
255
- transition:
256
- background 0.1s,
257
- border-color 0.1s;
258
- height: $block-height;
259
- border: $border-solid-border-width $border-solid-border-style $color-gray-500;
260
242
 
261
- &:hover {
243
+ .likertItemFill {
262
244
  transition:
263
- background 0s,
264
- border-color 0s;
265
- }
245
+ background 0.1s,
246
+ border-color 0.1s;
247
+ height: $block-height;
248
+ border: $border-solid-border-width $border-solid-border-style $color-gray-500;
266
249
 
267
- &::after {
268
- content: ' ';
269
- display: block;
270
- height: 100%;
271
- width: 100%;
272
- pointer-events: none;
273
- }
250
+ &:hover {
251
+ transition:
252
+ background 0s,
253
+ border-color 0s;
254
+ }
255
+
256
+ &::after {
257
+ content: ' ';
258
+ display: block;
259
+ height: 100%;
260
+ width: 100%;
261
+ pointer-events: none;
262
+ }
274
263
 
275
- &.pop::after {
276
- @include pop;
264
+ &.pop::after {
265
+ @include pop;
266
+ }
277
267
  }
278
- }
279
268
 
280
- .reversed .likertItemFill {
281
- border-color: rgba($color-white-rgb, 0.65);
282
- }
269
+ .reversed .likertItemFill {
270
+ border-color: rgba($color-white-rgb, 0.65);
271
+ }
283
272
 
284
- .check {
285
- display: block;
286
- position: absolute;
287
- top: 50%;
288
- left: 50%;
289
- margin: -10px 0 0 -10px;
290
- color: black;
273
+ .check {
274
+ display: block;
275
+ position: absolute;
276
+ top: 50%;
277
+ left: 50%;
278
+ margin: -10px 0 0 -10px;
279
+ color: black;
291
280
 
292
- .likertItem1 & {
293
- margin-left: -9px;
281
+ .likertItem1 & {
282
+ margin-left: -9px;
294
283
 
295
- [dir='rtl'] & {
296
- margin-left: -11px;
284
+ [dir='rtl'] & {
285
+ margin-left: -11px;
286
+ }
297
287
  }
298
- }
299
288
 
300
- .likertItem5 & {
301
- margin-left: -12px;
289
+ .likertItem5 & {
290
+ margin-left: -12px;
302
291
 
303
- [dir='rtl'] & {
304
- margin-left: -9px;
292
+ [dir='rtl'] & {
293
+ margin-left: -9px;
294
+ }
305
295
  }
306
296
  }
307
- }
308
-
309
- .hovered :where(.likertItem4, .likertItem5) .check {
310
- color: black;
311
- }
312
-
313
- .hovered.reversed .itemContainer > :not(.suggested.likertItem) .check {
314
- color: white;
315
- }
316
297
 
317
- @media only screen and (max-width: 767px) {
318
- $block-height: 48px;
319
-
320
- .container {
321
- min-width: 258px;
298
+ .hovered :where(.likertItem4, .likertItem5) .check {
299
+ color: black;
322
300
  }
323
301
 
324
- .itemContainer {
325
- height: $block-height + 2px;
302
+ .hovered.reversed .itemContainer > :not(.suggested.likertItem) .check {
303
+ color: white;
326
304
  }
327
305
 
328
- .likertItem {
329
- @include fill($block-height);
330
- }
306
+ @media only screen and (max-width: 767px) {
307
+ $block-height: 48px;
331
308
 
332
- .likertItemFill {
333
- height: $block-height;
334
- }
335
- }
309
+ .container {
310
+ min-width: 258px;
311
+ }
336
312
 
337
- @media print {
338
- .legend {
339
- display: none;
313
+ .itemContainer {
314
+ height: $block-height + 2px;
315
+ }
316
+
317
+ .likertItem {
318
+ @include fill($block-height);
319
+ }
320
+
321
+ .likertItemFill {
322
+ height: $block-height;
323
+ }
340
324
  }
341
325
 
342
- .container {
343
- top: 1em;
344
- right: 2em;
345
- width: 150px;
326
+ @media print {
327
+ .legend {
328
+ display: none;
329
+ }
346
330
 
347
- .likertItem {
348
- .likertItemFill {
349
- height: 25px;
350
- background: white;
351
- border: 1px solid #d7d8d8;
352
- }
331
+ .container {
332
+ top: 1em;
333
+ right: 2em;
334
+ width: 150px;
353
335
 
354
- &:first-child,
355
- &:last-child {
336
+ .likertItem {
356
337
  .likertItemFill {
338
+ height: 25px;
357
339
  background: white;
358
- border-width: 2px;
340
+ border: 1px solid #d7d8d8;
341
+ }
342
+
343
+ &:first-child,
344
+ &:last-child {
345
+ .likertItemFill {
346
+ background: white;
347
+ border-width: 2px;
348
+ }
359
349
  }
360
350
  }
361
351
  }
362
352
  }
353
+ /* stylelint-enable no-descending-specificity */
354
+ }
355
+
356
+ @keyframes pop {
357
+ 0% {
358
+ opacity: 50%;
359
+ -webkit-transform: scale(1);
360
+ }
361
+
362
+ 100% {
363
+ opacity: 0%;
364
+ -webkit-transform: scale(1.78);
365
+ }
363
366
  }
364
- /* stylelint-enable no-descending-specificity */