@gitlab/ui 136.3.0 → 136.3.2

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 (47) hide show
  1. package/dist/components/base/collapse/collapse.js +3 -4
  2. package/dist/components/base/filtered_search/filtered_search.js +4 -5
  3. package/dist/components/base/filtered_search/filtered_search_token.js +8 -9
  4. package/dist/components/base/filtered_search/filtered_search_token_segment.js +13 -14
  5. package/dist/components/base/form/form_checkbox/form_checkbox.js +14 -15
  6. package/dist/components/base/form/form_input/form_input.js +9 -11
  7. package/dist/components/base/form/form_radio/form_radio.js +14 -15
  8. package/dist/components/base/form/form_textarea/form_textarea.js +13 -16
  9. package/dist/components/base/infinite_scroll/infinite_scroll.js +17 -19
  10. package/dist/components/base/new_dropdowns/listbox/listbox.js +17 -19
  11. package/dist/components/base/sorting/sorting.js +2 -2
  12. package/dist/components/base/tabs/tabs/scrollable_tabs.js +6 -8
  13. package/dist/components/base/toggle/toggle.js +1 -0
  14. package/dist/components/base/token_selector/token_selector.js +13 -15
  15. package/dist/index.css +2 -2
  16. package/dist/index.css.map +1 -1
  17. package/dist/tokens/build/js/tokens.dark.js +34 -17
  18. package/dist/tokens/build/js/tokens.js +34 -17
  19. package/package.json +4 -4
  20. package/src/components/base/collapse/collapse.vue +3 -4
  21. package/src/components/base/filtered_search/filtered_search.vue +4 -5
  22. package/src/components/base/filtered_search/filtered_search_token.vue +8 -9
  23. package/src/components/base/filtered_search/filtered_search_token_segment.vue +10 -11
  24. package/src/components/base/form/form_checkbox/form_checkbox.vue +14 -15
  25. package/src/components/base/form/form_input/form_input.vue +9 -11
  26. package/src/components/base/form/form_radio/form_radio.vue +14 -15
  27. package/src/components/base/form/form_textarea/form_textarea.vue +13 -16
  28. package/src/components/base/infinite_scroll/infinite_scroll.vue +16 -18
  29. package/src/components/base/new_dropdowns/listbox/listbox.vue +17 -19
  30. package/src/components/base/sorting/sorting.vue +3 -2
  31. package/src/components/base/tabs/tabs/scrollable_tabs.vue +7 -9
  32. package/src/components/base/toggle/toggle.scss +90 -22
  33. package/src/components/base/toggle/toggle.vue +1 -0
  34. package/src/components/base/token_selector/token_selector.vue +12 -14
  35. package/src/tokens/build/css/tokens.css +39 -22
  36. package/src/tokens/build/css/tokens.dark.css +39 -22
  37. package/src/tokens/build/figma/mode.dark.json +189 -24
  38. package/src/tokens/build/figma/mode.json +189 -24
  39. package/src/tokens/build/js/tokens.dark.js +33 -16
  40. package/src/tokens/build/js/tokens.js +33 -16
  41. package/src/tokens/build/json/tokens.dark.json +650 -42
  42. package/src/tokens/build/json/tokens.json +650 -42
  43. package/src/tokens/build/scss/_tokens.dark.scss +39 -22
  44. package/src/tokens/build/scss/_tokens.scss +39 -22
  45. package/src/tokens/build/scss/_tokens_custom_properties.scss +17 -0
  46. package/src/tokens/contextual/toggle.tokens.json +198 -33
  47. package/src/tokens/semantic/action.tokens.json +14 -0
@@ -667,9 +667,6 @@ $gl-spinner-track-color-default: $gl-color-neutral-600; // Used for the static t
667
667
  $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
668
668
  $gl-spinner-segment-color-default: $gl-color-neutral-100; // Used for the animated segment of a loading spinner.
669
669
  $gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
670
- $gl-toggle-switch-track-color-checked-default: $gl-color-neutral-50; // Used for the track color of a checked toggle switch in the default state.
671
- $gl-toggle-switch-track-color-checked-hover: $gl-color-neutral-10; // Used for the track color of a checked toggle switch in the hover state.
672
- $gl-toggle-switch-track-color-checked-active: $gl-color-neutral-0; // Used for the track color of a checked toggle switch in the active state.
673
670
  $gl-token-selector-token-container-token-background-color-focus: $gl-color-neutral-600; // Used for the background color of a token in a token-selector when it's token-container is in the focus state.
674
671
  $gl-token-background-color: $gl-color-neutral-800; // Used for the token background color.
675
672
  $gl-tooltip-text-color-subtle: $gl-color-neutral-200; // Used for supplemental tooltip text that is less prominent than the default text and remains the same color regardless of mode.
@@ -745,6 +742,7 @@ $gl-action-selected-foreground-color-default: $gl-color-neutral-950; // Used for
745
742
  $gl-action-selected-background-color-default: $gl-color-neutral-50; // Used for the background of a selected action in the default state.
746
743
  $gl-action-selected-background-color-hover: $gl-color-neutral-10; // Used for the background of a selected action in the hover state.
747
744
  $gl-action-selected-background-color-active: $gl-color-neutral-0; // Used for the background of a selected action in the active state.
745
+ $gl-action-selected-background-color-disabled: $gl-color-neutral-500; // Used for the background of a disabled action that stays selected. Sits between the disabled background and the enabled selected background so the selected state keeps 3:1 contrast against the page while still reading as disabled.
748
746
  $gl-action-neutral-foreground-color-default: $gl-color-neutral-50; // Used for the foreground of a neutral action in the default state.
749
747
  $gl-action-neutral-background-color-default: $gl-color-alpha-0; // Used for the background of a neutral action in the default state.
750
748
  $gl-action-neutral-background-color-hover: $gl-color-alpha-light-16; // Used for the background of a neutral action in the hover state.
@@ -1027,17 +1025,25 @@ $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used
1027
1025
  $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
1028
1026
  $gl-table-row-background-color-hover: $gl-highlight-target-background-color; // Used for the background of a table row in hover state.
1029
1027
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
1030
- $gl-toggle-switch-track-color-unchecked-default: $gl-control-border-color-default; // Used for the track color of an unchecked toggle switch in the default state.
1031
- $gl-toggle-switch-track-color-checked-focus: $gl-toggle-switch-track-color-checked-hover; // Used for the track color of a checked toggle switch in the focus state.
1032
- $gl-toggle-switch-background-color-unchecked-default: $gl-control-indicator-color-selected; // Used for the background color of the unchecked toggle switch thumb in the default state.
1033
- $gl-toggle-switch-background-color-checked-default: $gl-action-strong-confirm-foreground-color-default; // Used for the background color of the checked toggle switch thumb in the default state.
1034
- $gl-toggle-switch-background-color-disabled: $gl-action-disabled-foreground-color; // Used for the background color of the toggle switch thumb in the disabled state.
1035
- $gl-toggle-switch-icon-color-unchecked-default: $gl-action-strong-neutral-background-color-default; // Used for the icon color of an unchecked toggle switch in the default state.
1036
- $gl-toggle-switch-icon-color-unchecked-hover: $gl-action-strong-neutral-background-color-hover; // Used for the icon color of an unchecked toggle switch in the hover state.
1037
- $gl-toggle-switch-icon-color-unchecked-active: $gl-action-strong-neutral-background-color-active; // Used for the icon color of an unchecked toggle switch in the active state.
1038
- $gl-toggle-switch-icon-color-checked-default: $gl-action-strong-confirm-background-color-default; // Used for the icon color of a checked toggle switch in the default state.
1039
- $gl-toggle-switch-icon-color-checked-hover: $gl-action-strong-confirm-background-color-hover; // Used for the icon color of a checked toggle switch in the hover state.
1040
- $gl-toggle-switch-icon-color-checked-active: $gl-action-strong-confirm-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
1028
+ $gl-toggle-switch-track-color-unchecked-default: $gl-control-background-color-default; // Used for the track color of an unchecked toggle switch in the default state.
1029
+ $gl-toggle-switch-track-color-unchecked-active: $gl-action-neutral-background-color-active; // Used for the track color of an unchecked toggle switch in the active state.
1030
+ $gl-toggle-switch-track-color-unchecked-disabled: $gl-control-background-color-default; // Used for the track color of a disabled unchecked toggle switch.
1031
+ $gl-toggle-switch-track-color-checked-default: $gl-action-selected-background-color-default; // Used for the track color of a checked toggle switch in the default state.
1032
+ $gl-toggle-switch-track-color-checked-hover: $gl-action-selected-background-color-hover; // Used for the track color of a checked toggle switch in the hover state.
1033
+ $gl-toggle-switch-track-color-checked-active: $gl-action-selected-background-color-active; // Used for the track color of a checked toggle switch in the active state.
1034
+ $gl-toggle-switch-track-color-checked-disabled: $gl-action-selected-background-color-disabled; // Used for the track color of a disabled checked toggle switch, which stays filled so the checked state remains legible.
1035
+ $gl-toggle-switch-track-color-loading: $gl-action-disabled-background-color; // Used for the track color of a loading toggle switch. A loading toggle renders no thumb and its value is still in flight, so the track carries no checked state.
1036
+ $gl-toggle-switch-track-border-color-unchecked-default: $gl-control-border-color-default; // Used for the track border color of an unchecked toggle switch in the default state.
1037
+ $gl-toggle-switch-track-border-color-unchecked-hover: $gl-control-border-color-hover; // Used for the track border color of an unchecked toggle switch in the hover state.
1038
+ $gl-toggle-switch-track-border-color-unchecked-disabled: $gl-action-disabled-border-color; // Used for the track border color of a disabled unchecked toggle switch.
1039
+ $gl-toggle-switch-background-color-unchecked-default: $gl-action-selected-background-color-default; // Used for the background color of the unchecked toggle switch thumb in the default state.
1040
+ $gl-toggle-switch-background-color-unchecked-disabled: $gl-action-disabled-foreground-color; // Used for the background color of the disabled unchecked toggle switch thumb.
1041
+ $gl-toggle-switch-background-color-checked-default: $gl-action-selected-foreground-color-default; // Used for the background color of the checked toggle switch thumb in the default state.
1042
+ $gl-toggle-switch-background-color-checked-disabled: $gl-action-selected-foreground-color-default; // Used for the background color of the disabled checked toggle switch thumb.
1043
+ $gl-toggle-switch-icon-color-unchecked-default: $gl-action-selected-foreground-color-default; // Used for the icon color of an unchecked toggle switch in the default state.
1044
+ $gl-toggle-switch-icon-color-checked-default: $gl-action-selected-background-color-default; // Used for the icon color of a checked toggle switch in the default state.
1045
+ $gl-toggle-switch-icon-color-checked-hover: $gl-action-selected-background-color-hover; // Used for the icon color of a checked toggle switch in the hover state.
1046
+ $gl-toggle-switch-icon-color-checked-active: $gl-action-selected-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
1041
1047
  $gl-toggle-switch-icon-color-disabled: $gl-action-disabled-background-color; // Used for the icon color of a disabled toggle switch.
1042
1048
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
1043
1049
  $gl-action-border-radius: $gl-border-radius-lg; // Used for the border radius of an action.
@@ -1229,13 +1235,21 @@ $gl-nav-item-foreground-color-active: $gl-nav-item-foreground-color-focus; // Us
1229
1235
  $gl-nav-item-selected-foreground-color-focus: $gl-nav-item-foreground-color-focus; // Used for the foreground of a selected navigation item in the focus state.
1230
1236
  $gl-nav-item-selected-background-color-focus: $gl-nav-item-background-color-focus; // Used for the background of a selected navigation item in the focus state.
1231
1237
  $gl-tab-selected-indicator-color-default: $gl-action-selected-border-color-active; // Used for the selected indicator of a tab.
1232
- $gl-toggle-switch-track-color-unchecked-hover: $gl-toggle-switch-track-color-unchecked-default; // Used for the track color of an unchecked toggle switch in the hover state.
1238
+ $gl-toggle-switch-track-color-unchecked-hover: $gl-toggle-switch-track-color-unchecked-default; // Used for the track color of an unchecked toggle switch in the hover state. The track is deliberately unchanged from the default state; hover is carried by the track border and the thumb size.
1239
+ $gl-toggle-switch-track-color-checked-focus: $gl-action-selected-background-color-focus; // Used for the track color of a checked toggle switch in the focus state.
1240
+ $gl-toggle-switch-track-border-color-unchecked-focus: $gl-toggle-switch-track-border-color-unchecked-hover; // Used for the track border color of an unchecked toggle switch in the focus state.
1241
+ $gl-toggle-switch-track-border-color-checked-default: $gl-action-selected-border-color-default; // Used for the track border color of a checked toggle switch in the default state.
1242
+ $gl-toggle-switch-track-border-color-checked-hover: $gl-action-selected-border-color-hover; // Used for the track border color of a checked toggle switch in the hover state.
1243
+ $gl-toggle-switch-track-border-color-checked-active: $gl-action-selected-border-color-active; // Used for the track border color of a checked toggle switch in the active state.
1244
+ $gl-toggle-switch-track-border-color-checked-disabled: $gl-toggle-switch-track-color-checked-disabled; // Used for the track border color of a disabled checked toggle switch, which matches the track color.
1245
+ $gl-toggle-switch-track-border-color-loading: $gl-toggle-switch-track-color-loading; // Used for the track border color of a loading toggle switch, which matches the track color so the track reads as a single flat fill.
1233
1246
  $gl-toggle-switch-background-color-unchecked-hover: $gl-toggle-switch-background-color-unchecked-default; // Used for the background color of the unchecked toggle switch thumb in the hover state.
1234
1247
  $gl-toggle-switch-background-color-unchecked-focus: $gl-toggle-switch-background-color-unchecked-default; // Used for the background color of the unchecked toggle switch thumb in the focus state.
1235
1248
  $gl-toggle-switch-background-color-unchecked-active: $gl-toggle-switch-background-color-unchecked-default; // Used for the background color of the unchecked toggle switch thumb in the active state.
1236
- $gl-toggle-switch-background-color-checked-hover: $gl-action-strong-confirm-foreground-color-hover; // Used for the background color of the checked toggle switch thumb in the hover state.
1237
- $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-strong-neutral-background-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
1238
- $gl-toggle-switch-icon-color-checked-focus: $gl-action-strong-confirm-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
1249
+ $gl-toggle-switch-background-color-checked-hover: $gl-action-selected-foreground-color-hover; // Used for the background color of the checked toggle switch thumb in the hover state.
1250
+ $gl-toggle-switch-background-color-disabled: $gl-toggle-switch-background-color-unchecked-disabled; // Use toggle.switch.background.color.unchecked.disabled instead.
1251
+ $gl-toggle-switch-icon-color-unchecked-hover: $gl-action-selected-foreground-color-hover; // Used for the icon color of an unchecked toggle switch in the hover state.
1252
+ $gl-toggle-switch-icon-color-checked-focus: $gl-action-selected-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
1239
1253
  $gl-token-border-radius: $gl-border-radius-default; // Used for token border radius.
1240
1254
  $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color-hover; // Used for the foreground of a selected action in the focus state.
1241
1255
  $gl-action-selected-border-color-focus: $gl-action-selected-background-color-focus; // Used for the border of a selected action in the focus state.
@@ -1245,11 +1259,14 @@ $gl-action-strong-neutral-border-color-focus: $gl-action-strong-neutral-border-c
1245
1259
  $gl-control-border-color-selected-focus: $gl-control-background-color-selected-focus; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
1246
1260
  $gl-button-confirm-primary-foreground-color-active: $gl-button-confirm-primary-foreground-color-focus; // Used for the foreground of a confirm (positive) primary button in the active state.
1247
1261
  $gl-nav-item-selected-foreground-color-active: $gl-nav-item-foreground-color-active; // Used for the foreground of a selected navigation item in the active state.
1248
- $gl-toggle-switch-track-color-unchecked-focus: $gl-toggle-switch-track-color-unchecked-hover; // Used for the track color of an unchecked toggle switch in the focus state.
1249
- $gl-toggle-switch-background-color-checked-focus: $gl-action-strong-confirm-foreground-color-focus; // Used for the background color of the checked toggle switch thumb in the focus state.
1262
+ $gl-toggle-switch-track-color-unchecked-focus: $gl-toggle-switch-track-color-unchecked-hover; // Used for the track color of an unchecked toggle switch in the focus state. The track is deliberately unchanged from the default state; focus is carried by the focus ring, the track border and the thumb size.
1263
+ $gl-toggle-switch-track-border-color-unchecked-active: $gl-toggle-switch-track-border-color-unchecked-focus; // Used for the track border color of an unchecked toggle switch in the active state.
1264
+ $gl-toggle-switch-track-border-color-checked-focus: $gl-action-selected-border-color-focus; // Used for the track border color of a checked toggle switch in the focus state.
1265
+ $gl-toggle-switch-background-color-checked-focus: $gl-action-selected-foreground-color-focus; // Used for the background color of the checked toggle switch thumb in the focus state.
1266
+ $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-selected-foreground-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
1250
1267
  $gl-action-selected-foreground-color-active: $gl-action-selected-foreground-color-focus; // Used for the foreground of a selected action in the active state.
1251
1268
  $gl-action-strong-confirm-foreground-color-active: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a strong confirm action in the active state.
1252
1269
  $gl-action-strong-confirm-border-color-active: $gl-action-strong-confirm-border-color-focus; // Used for the border of a strong confirm action in the active state.
1253
1270
  $gl-action-strong-neutral-border-color-active: $gl-action-strong-neutral-border-color-focus; // Used for the border of a strong neutral action in the active state.
1254
- $gl-toggle-switch-track-color-unchecked-active: $gl-toggle-switch-track-color-unchecked-focus; // Used for the track color of an unchecked toggle switch in the active state.
1255
- $gl-toggle-switch-background-color-checked-active: $gl-action-strong-confirm-foreground-color-active; // Used for the background color of the checked toggle switch thumb in the active state.
1271
+ $gl-toggle-switch-background-color-checked-active: $gl-action-selected-foreground-color-active; // Used for the background color of the checked toggle switch thumb in the active state.
1272
+ $gl-toggle-switch-icon-color-unchecked-active: $gl-action-selected-foreground-color-active; // Used for the icon color of an unchecked toggle switch in the active state.
@@ -649,9 +649,6 @@ $gl-spinner-track-color-default: $gl-color-neutral-100; // Used for the static t
649
649
  $gl-spinner-track-color-light: $gl-color-neutral-800; // Used for the static track (background) of a loading spinner on a dark background.
650
650
  $gl-spinner-segment-color-default: $gl-color-neutral-700; // Used for the animated segment of a loading spinner.
651
651
  $gl-spinner-segment-color-light: $gl-color-neutral-200; // Used for the animated segment of a loading spinner on a dark background.
652
- $gl-toggle-switch-track-color-checked-default: $gl-color-neutral-800; // Used for the track color of a checked toggle switch in the default state.
653
- $gl-toggle-switch-track-color-checked-hover: $gl-color-neutral-950; // Used for the track color of a checked toggle switch in the hover state.
654
- $gl-toggle-switch-track-color-checked-active: $gl-color-neutral-1000; // Used for the track color of a checked toggle switch in the active state.
655
652
  $gl-token-selector-token-container-token-background-color-focus: $gl-color-neutral-300; // Used for the background color of a token in a token-selector when it's token-container is in the focus state.
656
653
  $gl-token-background-color: $gl-color-neutral-100; // Used for the token background color.
657
654
  $gl-tooltip-text-color-subtle: $gl-color-neutral-200; // Used for supplemental tooltip text that is less prominent than the default text and remains the same color regardless of mode.
@@ -731,6 +728,7 @@ $gl-action-selected-foreground-color-default: $gl-color-neutral-0; // Used for t
731
728
  $gl-action-selected-background-color-default: $gl-color-neutral-800; // Used for the background of a selected action in the default state.
732
729
  $gl-action-selected-background-color-hover: $gl-color-neutral-950; // Used for the background of a selected action in the hover state.
733
730
  $gl-action-selected-background-color-active: $gl-color-neutral-1000; // Used for the background of a selected action in the active state.
731
+ $gl-action-selected-background-color-disabled: $gl-color-neutral-400; // Used for the background of a disabled action that stays selected. Sits between the disabled background and the enabled selected background so the selected state keeps 3:1 contrast against the page while still reading as disabled.
734
732
  $gl-action-neutral-foreground-color-default: $gl-color-neutral-900; // Used for the foreground of a neutral action in the default state.
735
733
  $gl-action-neutral-background-color-default: $gl-color-alpha-0; // Used for the background of a neutral action in the default state.
736
734
  $gl-action-neutral-background-color-hover: $gl-color-alpha-dark-6; // Used for the background of a neutral action in the hover state.
@@ -1020,17 +1018,25 @@ $gl-progress-bar-indicator-color-warning: $gl-status-warning-icon-color; // Used
1020
1018
  $gl-progress-bar-indicator-color-danger: $gl-status-danger-icon-color; // Used for the indicator color for the danger progress-bar variant.
1021
1019
  $gl-table-row-background-color-hover: $gl-highlight-target-background-color; // Used for the background of a table row in hover state.
1022
1020
  $gl-table-sorting-icon-color: $gl-text-color-heading; // Used for the color of the sorting icons in the column headers.
1023
- $gl-toggle-switch-track-color-unchecked-default: $gl-control-border-color-default; // Used for the track color of an unchecked toggle switch in the default state.
1024
- $gl-toggle-switch-track-color-checked-focus: $gl-toggle-switch-track-color-checked-hover; // Used for the track color of a checked toggle switch in the focus state.
1025
- $gl-toggle-switch-background-color-unchecked-default: $gl-control-indicator-color-selected; // Used for the background color of the unchecked toggle switch thumb in the default state.
1026
- $gl-toggle-switch-background-color-checked-default: $gl-action-strong-confirm-foreground-color-default; // Used for the background color of the checked toggle switch thumb in the default state.
1027
- $gl-toggle-switch-background-color-disabled: $gl-action-disabled-foreground-color; // Used for the background color of the toggle switch thumb in the disabled state.
1028
- $gl-toggle-switch-icon-color-unchecked-default: $gl-action-strong-neutral-background-color-default; // Used for the icon color of an unchecked toggle switch in the default state.
1029
- $gl-toggle-switch-icon-color-unchecked-hover: $gl-action-strong-neutral-background-color-hover; // Used for the icon color of an unchecked toggle switch in the hover state.
1030
- $gl-toggle-switch-icon-color-unchecked-active: $gl-action-strong-neutral-background-color-active; // Used for the icon color of an unchecked toggle switch in the active state.
1031
- $gl-toggle-switch-icon-color-checked-default: $gl-action-strong-confirm-background-color-default; // Used for the icon color of a checked toggle switch in the default state.
1032
- $gl-toggle-switch-icon-color-checked-hover: $gl-action-strong-confirm-background-color-hover; // Used for the icon color of a checked toggle switch in the hover state.
1033
- $gl-toggle-switch-icon-color-checked-active: $gl-action-strong-confirm-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
1021
+ $gl-toggle-switch-track-color-unchecked-default: $gl-control-background-color-default; // Used for the track color of an unchecked toggle switch in the default state.
1022
+ $gl-toggle-switch-track-color-unchecked-active: $gl-action-neutral-background-color-active; // Used for the track color of an unchecked toggle switch in the active state.
1023
+ $gl-toggle-switch-track-color-unchecked-disabled: $gl-control-background-color-default; // Used for the track color of a disabled unchecked toggle switch.
1024
+ $gl-toggle-switch-track-color-checked-default: $gl-action-selected-background-color-default; // Used for the track color of a checked toggle switch in the default state.
1025
+ $gl-toggle-switch-track-color-checked-hover: $gl-action-selected-background-color-hover; // Used for the track color of a checked toggle switch in the hover state.
1026
+ $gl-toggle-switch-track-color-checked-active: $gl-action-selected-background-color-active; // Used for the track color of a checked toggle switch in the active state.
1027
+ $gl-toggle-switch-track-color-checked-disabled: $gl-action-selected-background-color-disabled; // Used for the track color of a disabled checked toggle switch, which stays filled so the checked state remains legible.
1028
+ $gl-toggle-switch-track-color-loading: $gl-action-disabled-background-color; // Used for the track color of a loading toggle switch. A loading toggle renders no thumb and its value is still in flight, so the track carries no checked state.
1029
+ $gl-toggle-switch-track-border-color-unchecked-default: $gl-control-border-color-default; // Used for the track border color of an unchecked toggle switch in the default state.
1030
+ $gl-toggle-switch-track-border-color-unchecked-hover: $gl-control-border-color-hover; // Used for the track border color of an unchecked toggle switch in the hover state.
1031
+ $gl-toggle-switch-track-border-color-unchecked-disabled: $gl-action-disabled-border-color; // Used for the track border color of a disabled unchecked toggle switch.
1032
+ $gl-toggle-switch-background-color-unchecked-default: $gl-action-selected-background-color-default; // Used for the background color of the unchecked toggle switch thumb in the default state.
1033
+ $gl-toggle-switch-background-color-unchecked-disabled: $gl-action-disabled-foreground-color; // Used for the background color of the disabled unchecked toggle switch thumb.
1034
+ $gl-toggle-switch-background-color-checked-default: $gl-action-selected-foreground-color-default; // Used for the background color of the checked toggle switch thumb in the default state.
1035
+ $gl-toggle-switch-background-color-checked-disabled: $gl-action-selected-foreground-color-default; // Used for the background color of the disabled checked toggle switch thumb.
1036
+ $gl-toggle-switch-icon-color-unchecked-default: $gl-action-selected-foreground-color-default; // Used for the icon color of an unchecked toggle switch in the default state.
1037
+ $gl-toggle-switch-icon-color-checked-default: $gl-action-selected-background-color-default; // Used for the icon color of a checked toggle switch in the default state.
1038
+ $gl-toggle-switch-icon-color-checked-hover: $gl-action-selected-background-color-hover; // Used for the icon color of a checked toggle switch in the hover state.
1039
+ $gl-toggle-switch-icon-color-checked-active: $gl-action-selected-background-color-active; // Used for the icon color of a checked toggle switch in the active state.
1034
1040
  $gl-toggle-switch-icon-color-disabled: $gl-action-disabled-background-color; // Used for the icon color of a disabled toggle switch.
1035
1041
  $gl-token-foreground-color: $gl-text-color-default; // Used for the token foreground color.
1036
1042
  $gl-action-border-radius: $gl-border-radius-lg; // Used for the border radius of an action.
@@ -1227,13 +1233,21 @@ $gl-nav-item-foreground-color-active: $gl-nav-item-foreground-color-focus; // Us
1227
1233
  $gl-nav-item-selected-foreground-color-focus: $gl-nav-item-foreground-color-focus; // Used for the foreground of a selected navigation item in the focus state.
1228
1234
  $gl-nav-item-selected-background-color-focus: $gl-nav-item-background-color-focus; // Used for the background of a selected navigation item in the focus state.
1229
1235
  $gl-tab-selected-indicator-color-default: $gl-action-selected-border-color-active; // Used for the selected indicator of a tab.
1230
- $gl-toggle-switch-track-color-unchecked-hover: $gl-toggle-switch-track-color-unchecked-default; // Used for the track color of an unchecked toggle switch in the hover state.
1236
+ $gl-toggle-switch-track-color-unchecked-hover: $gl-toggle-switch-track-color-unchecked-default; // Used for the track color of an unchecked toggle switch in the hover state. The track is deliberately unchanged from the default state; hover is carried by the track border and the thumb size.
1237
+ $gl-toggle-switch-track-color-checked-focus: $gl-action-selected-background-color-focus; // Used for the track color of a checked toggle switch in the focus state.
1238
+ $gl-toggle-switch-track-border-color-unchecked-focus: $gl-toggle-switch-track-border-color-unchecked-hover; // Used for the track border color of an unchecked toggle switch in the focus state.
1239
+ $gl-toggle-switch-track-border-color-checked-default: $gl-action-selected-border-color-default; // Used for the track border color of a checked toggle switch in the default state.
1240
+ $gl-toggle-switch-track-border-color-checked-hover: $gl-action-selected-border-color-hover; // Used for the track border color of a checked toggle switch in the hover state.
1241
+ $gl-toggle-switch-track-border-color-checked-active: $gl-action-selected-border-color-active; // Used for the track border color of a checked toggle switch in the active state.
1242
+ $gl-toggle-switch-track-border-color-checked-disabled: $gl-toggle-switch-track-color-checked-disabled; // Used for the track border color of a disabled checked toggle switch, which matches the track color.
1243
+ $gl-toggle-switch-track-border-color-loading: $gl-toggle-switch-track-color-loading; // Used for the track border color of a loading toggle switch, which matches the track color so the track reads as a single flat fill.
1231
1244
  $gl-toggle-switch-background-color-unchecked-hover: $gl-toggle-switch-background-color-unchecked-default; // Used for the background color of the unchecked toggle switch thumb in the hover state.
1232
1245
  $gl-toggle-switch-background-color-unchecked-focus: $gl-toggle-switch-background-color-unchecked-default; // Used for the background color of the unchecked toggle switch thumb in the focus state.
1233
1246
  $gl-toggle-switch-background-color-unchecked-active: $gl-toggle-switch-background-color-unchecked-default; // Used for the background color of the unchecked toggle switch thumb in the active state.
1234
- $gl-toggle-switch-background-color-checked-hover: $gl-action-strong-confirm-foreground-color-hover; // Used for the background color of the checked toggle switch thumb in the hover state.
1235
- $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-strong-neutral-background-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
1236
- $gl-toggle-switch-icon-color-checked-focus: $gl-action-strong-confirm-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
1247
+ $gl-toggle-switch-background-color-checked-hover: $gl-action-selected-foreground-color-hover; // Used for the background color of the checked toggle switch thumb in the hover state.
1248
+ $gl-toggle-switch-background-color-disabled: $gl-toggle-switch-background-color-unchecked-disabled; // Use toggle.switch.background.color.unchecked.disabled instead.
1249
+ $gl-toggle-switch-icon-color-unchecked-hover: $gl-action-selected-foreground-color-hover; // Used for the icon color of an unchecked toggle switch in the hover state.
1250
+ $gl-toggle-switch-icon-color-checked-focus: $gl-action-selected-background-color-focus; // Used for the icon color of a checked toggle switch in the focus state.
1237
1251
  $gl-token-border-radius: $gl-border-radius-default; // Used for token border radius.
1238
1252
  $gl-action-selected-foreground-color-focus: $gl-action-selected-foreground-color-hover; // Used for the foreground of a selected action in the focus state.
1239
1253
  $gl-action-selected-border-color-focus: $gl-action-selected-background-color-focus; // Used for the border of a selected action in the focus state.
@@ -1244,12 +1258,15 @@ $gl-action-strong-neutral-border-color-focus: $gl-action-strong-neutral-border-c
1244
1258
  $gl-control-border-color-selected-focus: $gl-control-background-color-selected-focus; // Used for checked and indeterminate (selected) form control (checkbox, radio button) border on focus.
1245
1259
  $gl-button-confirm-primary-foreground-color-active: $gl-button-confirm-primary-foreground-color-focus; // Used for the foreground of a confirm (positive) primary button in the active state.
1246
1260
  $gl-nav-item-selected-foreground-color-active: $gl-nav-item-foreground-color-active; // Used for the foreground of a selected navigation item in the active state.
1247
- $gl-toggle-switch-track-color-unchecked-focus: $gl-toggle-switch-track-color-unchecked-hover; // Used for the track color of an unchecked toggle switch in the focus state.
1248
- $gl-toggle-switch-background-color-checked-focus: $gl-action-strong-confirm-foreground-color-focus; // Used for the background color of the checked toggle switch thumb in the focus state.
1261
+ $gl-toggle-switch-track-color-unchecked-focus: $gl-toggle-switch-track-color-unchecked-hover; // Used for the track color of an unchecked toggle switch in the focus state. The track is deliberately unchanged from the default state; focus is carried by the focus ring, the track border and the thumb size.
1262
+ $gl-toggle-switch-track-border-color-unchecked-active: $gl-toggle-switch-track-border-color-unchecked-focus; // Used for the track border color of an unchecked toggle switch in the active state.
1263
+ $gl-toggle-switch-track-border-color-checked-focus: $gl-action-selected-border-color-focus; // Used for the track border color of a checked toggle switch in the focus state.
1264
+ $gl-toggle-switch-background-color-checked-focus: $gl-action-selected-foreground-color-focus; // Used for the background color of the checked toggle switch thumb in the focus state.
1265
+ $gl-toggle-switch-icon-color-unchecked-focus: $gl-action-selected-foreground-color-focus; // Used for the icon color of an unchecked toggle switch in the focus state.
1249
1266
  $gl-action-selected-foreground-color-active: $gl-action-selected-foreground-color-focus; // Used for the foreground of a selected action in the active state.
1250
1267
  $gl-action-strong-confirm-foreground-color-active: $gl-action-strong-confirm-foreground-color-focus; // Used for the foreground of a strong confirm action in the active state.
1251
1268
  $gl-action-strong-confirm-border-color-active: $gl-action-strong-confirm-border-color-focus; // Used for the border of a strong confirm action in the active state.
1252
1269
  $gl-action-strong-neutral-foreground-color-active: $gl-action-strong-neutral-foreground-color-focus; // Used for the foreground of a strong neutral action in the active state.
1253
1270
  $gl-action-strong-neutral-border-color-active: $gl-action-strong-neutral-border-color-focus; // Used for the border of a strong neutral action in the active state.
1254
- $gl-toggle-switch-track-color-unchecked-active: $gl-toggle-switch-track-color-unchecked-focus; // Used for the track color of an unchecked toggle switch in the active state.
1255
- $gl-toggle-switch-background-color-checked-active: $gl-action-strong-confirm-foreground-color-active; // Used for the background color of the checked toggle switch thumb in the active state.
1271
+ $gl-toggle-switch-background-color-checked-active: $gl-action-selected-foreground-color-active; // Used for the background color of the checked toggle switch thumb in the active state.
1272
+ $gl-toggle-switch-icon-color-unchecked-active: $gl-action-selected-foreground-color-active; // Used for the icon color of an unchecked toggle switch in the active state.
@@ -712,18 +712,34 @@ $gl-toggle-switch-track-color-unchecked-default: var(--gl-toggle-switch-track-co
712
712
  $gl-toggle-switch-track-color-unchecked-hover: var(--gl-toggle-switch-track-color-unchecked-hover);
713
713
  $gl-toggle-switch-track-color-unchecked-focus: var(--gl-toggle-switch-track-color-unchecked-focus);
714
714
  $gl-toggle-switch-track-color-unchecked-active: var(--gl-toggle-switch-track-color-unchecked-active);
715
+ $gl-toggle-switch-track-color-unchecked-disabled: var(--gl-toggle-switch-track-color-unchecked-disabled);
715
716
  $gl-toggle-switch-track-color-checked-default: var(--gl-toggle-switch-track-color-checked-default);
716
717
  $gl-toggle-switch-track-color-checked-hover: var(--gl-toggle-switch-track-color-checked-hover);
717
718
  $gl-toggle-switch-track-color-checked-focus: var(--gl-toggle-switch-track-color-checked-focus);
718
719
  $gl-toggle-switch-track-color-checked-active: var(--gl-toggle-switch-track-color-checked-active);
720
+ $gl-toggle-switch-track-color-checked-disabled: var(--gl-toggle-switch-track-color-checked-disabled);
721
+ $gl-toggle-switch-track-color-loading: var(--gl-toggle-switch-track-color-loading);
722
+ $gl-toggle-switch-track-border-color-unchecked-default: var(--gl-toggle-switch-track-border-color-unchecked-default);
723
+ $gl-toggle-switch-track-border-color-unchecked-hover: var(--gl-toggle-switch-track-border-color-unchecked-hover);
724
+ $gl-toggle-switch-track-border-color-unchecked-focus: var(--gl-toggle-switch-track-border-color-unchecked-focus);
725
+ $gl-toggle-switch-track-border-color-unchecked-active: var(--gl-toggle-switch-track-border-color-unchecked-active);
726
+ $gl-toggle-switch-track-border-color-unchecked-disabled: var(--gl-toggle-switch-track-border-color-unchecked-disabled);
727
+ $gl-toggle-switch-track-border-color-checked-default: var(--gl-toggle-switch-track-border-color-checked-default);
728
+ $gl-toggle-switch-track-border-color-checked-hover: var(--gl-toggle-switch-track-border-color-checked-hover);
729
+ $gl-toggle-switch-track-border-color-checked-focus: var(--gl-toggle-switch-track-border-color-checked-focus);
730
+ $gl-toggle-switch-track-border-color-checked-active: var(--gl-toggle-switch-track-border-color-checked-active);
731
+ $gl-toggle-switch-track-border-color-checked-disabled: var(--gl-toggle-switch-track-border-color-checked-disabled);
732
+ $gl-toggle-switch-track-border-color-loading: var(--gl-toggle-switch-track-border-color-loading);
719
733
  $gl-toggle-switch-background-color-unchecked-default: var(--gl-toggle-switch-background-color-unchecked-default);
720
734
  $gl-toggle-switch-background-color-unchecked-hover: var(--gl-toggle-switch-background-color-unchecked-hover);
721
735
  $gl-toggle-switch-background-color-unchecked-focus: var(--gl-toggle-switch-background-color-unchecked-focus);
722
736
  $gl-toggle-switch-background-color-unchecked-active: var(--gl-toggle-switch-background-color-unchecked-active);
737
+ $gl-toggle-switch-background-color-unchecked-disabled: var(--gl-toggle-switch-background-color-unchecked-disabled);
723
738
  $gl-toggle-switch-background-color-checked-default: var(--gl-toggle-switch-background-color-checked-default);
724
739
  $gl-toggle-switch-background-color-checked-hover: var(--gl-toggle-switch-background-color-checked-hover);
725
740
  $gl-toggle-switch-background-color-checked-focus: var(--gl-toggle-switch-background-color-checked-focus);
726
741
  $gl-toggle-switch-background-color-checked-active: var(--gl-toggle-switch-background-color-checked-active);
742
+ $gl-toggle-switch-background-color-checked-disabled: var(--gl-toggle-switch-background-color-checked-disabled);
727
743
  $gl-toggle-switch-background-color-disabled: var(--gl-toggle-switch-background-color-disabled);
728
744
  $gl-toggle-switch-icon-color-unchecked-default: var(--gl-toggle-switch-icon-color-unchecked-default);
729
745
  $gl-toggle-switch-icon-color-unchecked-hover: var(--gl-toggle-switch-icon-color-unchecked-hover);
@@ -899,6 +915,7 @@ $gl-action-selected-background-color-default: var(--gl-action-selected-backgroun
899
915
  $gl-action-selected-background-color-hover: var(--gl-action-selected-background-color-hover);
900
916
  $gl-action-selected-background-color-focus: var(--gl-action-selected-background-color-focus);
901
917
  $gl-action-selected-background-color-active: var(--gl-action-selected-background-color-active);
918
+ $gl-action-selected-background-color-disabled: var(--gl-action-selected-background-color-disabled);
902
919
  $gl-action-selected-border-color-default: var(--gl-action-selected-border-color-default);
903
920
  $gl-action-selected-border-color-hover: var(--gl-action-selected-border-color-hover);
904
921
  $gl-action-selected-border-color-focus: var(--gl-action-selected-border-color-focus);