@carbon/element-styles 0.3.6 → 0.3.7-rc.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 (91) hide show
  1. package/README.md +51 -33
  2. package/css/prebuilt/editorial.css +1 -1
  3. package/css/prebuilt/expressive.css +2 -2
  4. package/css/prebuilt/productive.css +2 -2
  5. package/index.scss +2 -2
  6. package/package.json +30 -16
  7. package/scss/_config.scss +1 -1
  8. package/scss/elements/_heading/index.scss +3 -3
  9. package/scss/elements/_input/index.scss +11 -11
  10. package/scss/elements/_labelled-input/index.scss +41 -39
  11. package/scss/elements/_layer/index.scss +29 -17
  12. package/scss/elements/abbreviation/index.scss +5 -5
  13. package/scss/elements/address/index.scss +5 -5
  14. package/scss/elements/anchor/index.scss +10 -10
  15. package/scss/elements/block-quotation/index.scss +7 -7
  16. package/scss/elements/body/index.scss +6 -6
  17. package/scss/elements/bold-text/index.scss +4 -4
  18. package/scss/elements/button/index.scss +19 -19
  19. package/scss/elements/checkbox/index.scss +16 -14
  20. package/scss/elements/code/index.scss +6 -6
  21. package/scss/elements/color-input/index.scss +24 -27
  22. package/scss/elements/combo-box/index.scss +22 -20
  23. package/scss/elements/date-input/index.scss +18 -16
  24. package/scss/elements/date-time-input/index.scss +18 -16
  25. package/scss/elements/deleted-text/index.scss +6 -6
  26. package/scss/elements/description-list/index.scss +5 -5
  27. package/scss/elements/details/index.scss +12 -11
  28. package/scss/elements/dialog/index.scss +63 -49
  29. package/scss/elements/email-input/index.scss +17 -15
  30. package/scss/elements/fieldset/index.scss +11 -9
  31. package/scss/elements/file-input/index.scss +10 -9
  32. package/scss/elements/footer/index.scss +6 -6
  33. package/scss/elements/header-navigation/index.scss +11 -11
  34. package/scss/elements/heading-level-1/index.scss +5 -5
  35. package/scss/elements/heading-level-2/index.scss +5 -5
  36. package/scss/elements/heading-level-3/index.scss +5 -5
  37. package/scss/elements/heading-level-4/index.scss +5 -5
  38. package/scss/elements/heading-level-5/index.scss +5 -5
  39. package/scss/elements/heading-level-6/index.scss +5 -5
  40. package/scss/elements/horizontal-rule/index.scss +8 -8
  41. package/scss/elements/image/index.scss +3 -3
  42. package/scss/elements/inline-loading/index.scss +11 -12
  43. package/scss/elements/inline-quotation/index.scss +4 -4
  44. package/scss/elements/inserted-text/index.scss +6 -6
  45. package/scss/elements/italic-text/index.scss +4 -4
  46. package/scss/elements/keyboard-input/index.scss +6 -6
  47. package/scss/elements/label/index.scss +9 -9
  48. package/scss/elements/main/index.scss +6 -6
  49. package/scss/elements/marked-text/index.scss +7 -7
  50. package/scss/elements/menu/index.scss +13 -12
  51. package/scss/elements/number-input/index.scss +15 -13
  52. package/scss/elements/ordered-list/index.scss +5 -5
  53. package/scss/elements/paragraph/index.scss +4 -4
  54. package/scss/elements/password-input/index.scss +16 -14
  55. package/scss/elements/popover/index.scss +32 -37
  56. package/scss/elements/preformatted/index.scss +5 -5
  57. package/scss/elements/progress-bar/index.scss +20 -18
  58. package/scss/elements/radio-button/index.scss +14 -12
  59. package/scss/elements/range-input/index.scss +13 -11
  60. package/scss/elements/search-input/index.scss +18 -16
  61. package/scss/elements/select/index.scss +24 -22
  62. package/scss/elements/side-navigation/index.scss +11 -11
  63. package/scss/elements/small-text/index.scss +5 -5
  64. package/scss/elements/table/index.scss +16 -12
  65. package/scss/elements/tabs/index.scss +20 -16
  66. package/scss/elements/telephone-number-input/index.scss +17 -15
  67. package/scss/elements/text-area/index.scss +20 -16
  68. package/scss/elements/text-input/index.scss +17 -15
  69. package/scss/elements/tile/index.scss +14 -13
  70. package/scss/elements/time-input/index.scss +18 -16
  71. package/scss/elements/toggle/index.scss +20 -16
  72. package/scss/elements/tooltip/index.scss +13 -11
  73. package/scss/elements/tree-view/index.scss +11 -11
  74. package/scss/elements/unordered-list/index.scss +7 -7
  75. package/scss/elements/url-input/index.scss +17 -15
  76. package/scss/layout/_density.scss +6 -6
  77. package/scss/layout/_mode.scss +269 -161
  78. package/scss/layout/_size.scss +16 -10
  79. package/scss/layout/index.scss +3 -3
  80. package/scss/prebuilt/editorial/_elements.scss +34 -32
  81. package/scss/prebuilt/editorial/_layout.scss +4 -4
  82. package/scss/prebuilt/editorial/index.scss +9 -9
  83. package/scss/prebuilt/expressive/_elements.scss +74 -70
  84. package/scss/prebuilt/expressive/_layout.scss +4 -4
  85. package/scss/prebuilt/expressive/index.scss +9 -9
  86. package/scss/prebuilt/productive/_elements.scss +69 -67
  87. package/scss/prebuilt/productive/_layout.scss +4 -4
  88. package/scss/prebuilt/productive/index.scss +9 -9
  89. package/scss/utilities/_carbon.scss +28 -25
  90. package/scss/utilities/_icons.scss +1 -1
  91. package/scss/utilities/_tokens.scss +5 -5
package/index.scss CHANGED
@@ -5,6 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @forward './scss/utilities/carbon';
8
+ @forward "./scss/utilities/carbon";
9
9
 
10
- @forward './scss/layout';
10
+ @forward "./scss/layout";
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@carbon/element-styles",
3
+ "version": "0.3.7-rc.0",
3
4
  "description": "An experimental styling system for native HTML elements, relying on semantic, attribute-focused selectors instead of class names.",
4
- "version": "0.3.6",
5
+ "keywords": [
6
+ "carbon",
7
+ "carbon-design-system",
8
+ "components",
9
+ "css",
10
+ "ibm"
11
+ ],
5
12
  "license": "Apache-2.0",
6
- "type": "module",
7
- "sass": "index.scss",
8
13
  "repository": {
9
14
  "type": "git",
10
15
  "url": "git+https://github.com/carbon-design-system/carbon-element-styles.git"
@@ -12,41 +17,50 @@
12
17
  "files": [
13
18
  "index.scss",
14
19
  "scss",
20
+ "!**/*.test.ts",
15
21
  "css",
16
22
  "telemetry.yml"
17
23
  ],
18
- "keywords": [
19
- "ibm",
20
- "carbon",
21
- "carbon-design-system",
22
- "components",
23
- "css"
24
- ],
24
+ "type": "module",
25
25
  "publishConfig": {
26
26
  "access": "public",
27
27
  "provenance": true
28
28
  },
29
29
  "scripts": {
30
30
  "postinstall": "ibmtelemetry --config=telemetry.yml",
31
+ "prepare": "husky",
31
32
  "dev": "vite docs",
32
33
  "build": "npm run build:icons && npm run build:prebuilts && npm run build:docs",
33
34
  "build:icons": "node tasks/build-icons.ts",
34
35
  "build:prebuilts": "node tasks/build-prebuilts.ts",
35
- "build:docs": "vite build docs"
36
+ "build:docs": "vite build docs",
37
+ "format": "oxfmt",
38
+ "format:check": "oxfmt --check",
39
+ "lint": "oxlint --deny-warnings",
40
+ "typecheck": "tsc -p docs",
41
+ "check": "npm run format:check && npm run lint && npm run typecheck",
42
+ "test": "vitest --config vitest.config.ts",
43
+ "test:postbuild": "vitest --config vitest.postbuild.config.ts"
36
44
  },
37
45
  "dependencies": {
38
46
  "@ibm/telemetry-js": "^1.11.0"
39
47
  },
40
- "peerDependencies": {
41
- "@carbon/styles": "^1.102.0"
42
- },
43
48
  "devDependencies": {
44
49
  "@carbon/icons": "^11.84.0",
45
50
  "@types/node": "^26.1.1",
46
51
  "highlight.js": "^11.11.1",
52
+ "husky": "^9.1.7",
47
53
  "marked": "^18.0.6",
48
54
  "marked-highlight": "^2.2.4",
55
+ "oxfmt": "^0.61.0",
56
+ "oxlint": "^1.76.0",
49
57
  "sass": "^1.101.0",
50
- "vite": "^8.1.5"
51
- }
58
+ "typescript": "^7.0.2",
59
+ "vite": "^8.1.5",
60
+ "vitest": "^4.1.10"
61
+ },
62
+ "peerDependencies": {
63
+ "@carbon/styles": "^1.102.0"
64
+ },
65
+ "sass": "index.scss"
52
66
  }
package/scss/_config.scss CHANGED
@@ -5,4 +5,4 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- $prefix: 'es' !default;
8
+ $prefix: "es" !default;
@@ -5,11 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/spacing';
10
+ @use "@carbon/styles/scss/spacing";
11
11
 
12
- @use '../../layout';
12
+ @use "../../layout";
13
13
 
14
14
  $config: () !default;
15
15
 
@@ -5,12 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
11
- @use '@carbon/styles/scss/utilities/focus-outline';
10
+ @use "@carbon/styles/scss/theme";
11
+ @use "@carbon/styles/scss/utilities/focus-outline";
12
12
 
13
- @use '../../layout';
13
+ @use "../../layout";
14
14
 
15
15
  $config: () !default;
16
16
 
@@ -53,14 +53,14 @@ $-default-config: (
53
53
  color: theme.$text-placeholder;
54
54
  }
55
55
 
56
- @if map.get($props, 'emit-readonly') {
56
+ @if map.get($props, "emit-readonly") {
57
57
  &:read-only {
58
58
  background-color: transparent;
59
59
  border-block-end-color: theme.$border-subtle;
60
60
  }
61
61
  }
62
62
 
63
- @if map.get($props, 'emit-disabled') {
63
+ @if map.get($props, "emit-disabled") {
64
64
  &:disabled {
65
65
  color: theme.$text-disabled;
66
66
  background-color: theme.$layer;
@@ -69,7 +69,7 @@ $-default-config: (
69
69
  }
70
70
  }
71
71
 
72
- @if map.get($props, 'emit-invalid') {
72
+ @if map.get($props, "emit-invalid") {
73
73
  &:invalid,
74
74
  &[aria-invalid="true"] {
75
75
  outline-offset: -0.125rem;
@@ -78,15 +78,15 @@ $-default-config: (
78
78
  }
79
79
  }
80
80
 
81
- @if map.get($props, 'emit-focus') {
81
+ @if map.get($props, "emit-focus") {
82
82
  &:focus {
83
- @include focus-outline.focus-outline('outline');
83
+ @include focus-outline.focus-outline("outline");
84
84
  }
85
85
 
86
- @if map.get($props, 'emit-invalid') {
86
+ @if map.get($props, "emit-invalid") {
87
87
  &:focus:invalid,
88
88
  &:focus[aria-invalid="true"] {
89
- @include focus-outline.focus-outline('outline');
89
+ @include focus-outline.focus-outline("outline");
90
90
  }
91
91
  }
92
92
  }
@@ -5,26 +5,26 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
11
- @use '@carbon/styles/scss/spacing';
10
+ @use "@carbon/styles/scss/theme";
11
+ @use "@carbon/styles/scss/spacing";
12
12
 
13
- @use '../label';
14
- @use '../_input';
13
+ @use "../label";
14
+ @use "../_input";
15
15
 
16
- @use '../../layout';
17
- @use '../../utilities/icons';
16
+ @use "../../layout";
17
+ @use "../../utilities/icons";
18
18
 
19
19
  $config: () !default;
20
20
 
21
21
  $-default-config: (
22
22
  label: (
23
- selector: 'label',
24
- axis: 'block',
23
+ selector: "label",
24
+ axis: "block",
25
25
  ),
26
26
  input: (
27
- selector: 'input',
27
+ selector: "input",
28
28
  emit-readonly: true,
29
29
  emit-disabled: true,
30
30
  emit-invalid: true,
@@ -52,25 +52,29 @@ $-default-config: (
52
52
  @mixin styles($config: $config) {
53
53
  $props: map.deep-merge($-default-config, $config);
54
54
 
55
- #{map.get($props, 'label', 'selector')} {
56
- @include label.styles((
57
- selector: '&',
58
- axis: map.get($props, 'label', 'axis'),
59
- ));
55
+ #{map.get($props, "label", "selector")} {
56
+ @include label.styles(
57
+ (
58
+ selector: "&",
59
+ axis: map.get($props, "label", "axis"),
60
+ )
61
+ );
60
62
 
61
63
  position: relative;
62
64
 
63
- #{map.get($props, 'input', 'selector')} {
64
- @include input.styles((
65
- selector: '&',
66
- emit-readonly: map.get($props, 'input', 'emit-readonly'),
67
- emit-disabled: map.get($props, 'input', 'emit-disabled'),
68
- emit-invalid: map.get($props, 'input', 'emit-invalid'),
69
- emit-focus: map.get($props, 'input', 'emit-focus'),
70
- ));
71
-
72
- padding-inline-start: -get-slot-space(map.get($props, 'fixed-input-leading-slots'));
73
- padding-inline-end: -get-slot-space(map.get($props, 'fixed-input-trailing-slots'));
65
+ #{map.get($props, "input", "selector")} {
66
+ @include input.styles(
67
+ (
68
+ selector: "&",
69
+ emit-readonly: map.get($props, "input", "emit-readonly"),
70
+ emit-disabled: map.get($props, "input", "emit-disabled"),
71
+ emit-invalid: map.get($props, "input", "emit-invalid"),
72
+ emit-focus: map.get($props, "input", "emit-focus"),
73
+ )
74
+ );
75
+
76
+ padding-inline-start: -get-slot-space(map.get($props, "fixed-input-leading-slots"));
77
+ padding-inline-end: -get-slot-space(map.get($props, "fixed-input-trailing-slots"));
74
78
  }
75
79
 
76
80
  &::before,
@@ -80,25 +84,25 @@ $-default-config: (
80
84
  pointer-events: none;
81
85
  inset-block-start: calc(layout.$size--padding-block-start - ((1rem - 1lh) * 0.5));
82
86
 
83
- @if map.get($props, 'label', 'axis') == 'block' {
87
+ @if map.get($props, "label", "axis") == "block" {
84
88
  grid-row: 2;
85
89
  } @else {
86
90
  grid-column: 2;
87
91
  }
88
92
  }
89
93
 
90
- @if map.get($props, 'input-invalid-slot') and map.get($props, 'input', 'emit-invalid') {
91
- &:has(#{map.get($props, 'input', 'selector')}:invalid),
92
- &:has(#{map.get($props, 'input', 'selector')}[aria-invalid="true"]) {
94
+ @if map.get($props, "input-invalid-slot") and map.get($props, "input", "emit-invalid") {
95
+ &:has(#{map.get($props, "input", "selector")}:invalid),
96
+ &:has(#{map.get($props, "input", "selector")}[aria-invalid="true"]) {
93
97
  &::#{map.get($props, 'input-invalid-slot')} {
94
- @include input-trailing-slot(map.get($props, 'fixed-input-trailing-slots') + 1) {
98
+ @include input-trailing-slot(map.get($props, "fixed-input-trailing-slots") + 1) {
95
99
  @include icons.warning--filled;
96
100
  color: theme.$support-error;
97
101
  }
98
102
  }
99
103
 
100
- #{map.get($props, 'input', 'selector')} {
101
- padding-inline-end: -get-slot-space(map.get($props, 'fixed-input-trailing-slots') + 1);
104
+ #{map.get($props, "input", "selector")} {
105
+ padding-inline-end: -get-slot-space(map.get($props, "fixed-input-trailing-slots") + 1);
102
106
  }
103
107
  }
104
108
  }
@@ -123,21 +127,19 @@ $-default-config: (
123
127
  + inline padding if has any slots
124
128
  */
125
129
  @return calc(
126
- layout.$density--padding
127
- + $count * 1rem
128
- + max(($count - 1) * spacing.$spacing-03, 0rem)
129
- + $additional-inline-padding
130
+ layout.$density--padding + $count * 1rem + max(($count - 1) * spacing.$spacing-03, 0rem) +
131
+ $additional-inline-padding
130
132
  );
131
133
  }
132
134
 
133
135
  @mixin input-leading-slot($index: 1) {
134
- content: '';
136
+ content: "";
135
137
  inset-inline-start: -get-slot-offset($index);
136
138
  @content;
137
139
  }
138
140
 
139
141
  @mixin input-trailing-slot($index: 1) {
140
- content: '';
142
+ content: "";
141
143
  inset-inline-end: -get-slot-offset($index);
142
144
  @content;
143
145
  }
@@ -5,14 +5,14 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
11
- @use '@carbon/styles/scss/layer/layer-tokens';
12
- @use '@carbon/styles/scss/utilities/custom-property';
10
+ @use "@carbon/styles/scss/theme";
11
+ @use "@carbon/styles/scss/layer/layer-tokens";
12
+ @use "@carbon/styles/scss/utilities/custom-property";
13
13
 
14
- @use '../../layout';
15
- @use '../../utilities/tokens';
14
+ @use "../../layout";
15
+ @use "../../utilities/tokens";
16
16
 
17
17
  $config: () !default;
18
18
 
@@ -42,19 +42,19 @@ $-default-config: ();
42
42
  // fallback for browers without container style query support
43
43
  background-color: theme.$layer;
44
44
 
45
- @include -on-layer('01', true) {
45
+ @include -on-layer("01", true) {
46
46
  background-color: theme.$layer-background;
47
- @include tokens.set('layer-level', '02');
47
+ @include tokens.set("layer-level", "02");
48
48
  @include layer-tokens.emit-layer-tokens(2);
49
49
  }
50
50
 
51
- @include -on-layer('02') {
51
+ @include -on-layer("02") {
52
52
  background-color: theme.$layer-background;
53
- @include tokens.set('layer-level', '03');
53
+ @include tokens.set("layer-level", "03");
54
54
  @include layer-tokens.emit-layer-tokens(3);
55
55
  }
56
56
 
57
- @include -on-layer('03') {
57
+ @include -on-layer("03") {
58
58
  background-color: theme.$layer;
59
59
  }
60
60
  }
@@ -63,16 +63,28 @@ $-default-config: ();
63
63
  // fallback for browers without container style query support
64
64
  background-color: theme.$layer-hover;
65
65
 
66
- @include -on-layer('01') { background-color: theme.$layer-hover-01; }
67
- @include -on-layer('02') { background-color: theme.$layer-hover-02; }
68
- @include -on-layer('03') { background-color: theme.$layer-hover-03; }
66
+ @include -on-layer("01") {
67
+ background-color: theme.$layer-hover-01;
68
+ }
69
+ @include -on-layer("02") {
70
+ background-color: theme.$layer-hover-02;
71
+ }
72
+ @include -on-layer("03") {
73
+ background-color: theme.$layer-hover-03;
74
+ }
69
75
  }
70
76
 
71
77
  @mixin layer-background-active {
72
78
  // fallback for browers without container style query support
73
79
  background-color: theme.$layer-active;
74
80
 
75
- @include -on-layer('01') { background-color: theme.$layer-active-01; }
76
- @include -on-layer('02') { background-color: theme.$layer-active-02; }
77
- @include -on-layer('03') { background-color: theme.$layer-active-03; }
81
+ @include -on-layer("01") {
82
+ background-color: theme.$layer-active-01;
83
+ }
84
+ @include -on-layer("02") {
85
+ background-color: theme.$layer-active-02;
86
+ }
87
+ @include -on-layer("03") {
88
+ background-color: theme.$layer-active-03;
89
+ }
78
90
  }
@@ -5,16 +5,16 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
10
+ @use "@carbon/styles/scss/theme";
11
11
 
12
- @use '../../layout';
12
+ @use "../../layout";
13
13
 
14
14
  $config: () !default;
15
15
 
16
16
  $-default-config: (
17
- selector: 'abbr[title]',
17
+ selector: "abbr[title]",
18
18
  );
19
19
 
20
20
  /// @group abbreviation
@@ -23,7 +23,7 @@ $-default-config: (
23
23
  @mixin styles($config: $config) {
24
24
  $props: map.deep-merge($-default-config, $config);
25
25
 
26
- #{map.get($props, 'selector')} {
26
+ #{map.get($props, "selector")} {
27
27
  text-decoration: none;
28
28
  cursor: help;
29
29
  border-block-end: 0.0625rem dotted theme.$border-strong;
@@ -5,16 +5,16 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
10
+ @use "@carbon/styles/scss/theme";
11
11
 
12
- @use '../../layout';
12
+ @use "../../layout";
13
13
 
14
14
  $config: () !default;
15
15
 
16
16
  $-default-config: (
17
- selector: 'address',
17
+ selector: "address",
18
18
  );
19
19
 
20
20
  /// @group address
@@ -23,7 +23,7 @@ $-default-config: (
23
23
  @mixin styles($config: $config) {
24
24
  $props: map.deep-merge($-default-config, $config);
25
25
 
26
- #{map.get($props, 'selector')} {
26
+ #{map.get($props, "selector")} {
27
27
  @include layout.mode--helper-text;
28
28
  color: theme.$text-secondary;
29
29
  font-style: normal;
@@ -5,19 +5,19 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
11
- @use '@carbon/styles/scss/spacing';
12
- @use '@carbon/styles/scss/utilities/focus-outline';
10
+ @use "@carbon/styles/scss/theme";
11
+ @use "@carbon/styles/scss/spacing";
12
+ @use "@carbon/styles/scss/utilities/focus-outline";
13
13
 
14
- @use '../../layout';
15
- @use '../../utilities/guards';
14
+ @use "../../layout";
15
+ @use "../../utilities/guards";
16
16
 
17
17
  $config: () !default;
18
18
 
19
19
  $-default-config: (
20
- selector: 'a',
20
+ selector: "a",
21
21
  emit-visited: true,
22
22
  );
23
23
 
@@ -27,9 +27,9 @@ $-default-config: (
27
27
  /// @param {Bool} config.emit-visited [true] - Enable visited link styles using theme.$link-visited
28
28
  @mixin styles($config: $config) {
29
29
  $props: map.deep-merge($-default-config, $config);
30
- $emit-visited: map.get($props, 'emit-visited') == true;
30
+ $emit-visited: map.get($props, "emit-visited") == true;
31
31
 
32
- #{map.get($props, 'selector')} {
32
+ #{map.get($props, "selector")} {
33
33
  display: inline-flex;
34
34
  align-items: center;
35
35
  column-gap: spacing.$spacing-03;
@@ -60,7 +60,7 @@ $-default-config: (
60
60
  }
61
61
 
62
62
  &:focus {
63
- @include focus-outline.focus-outline('outline');
63
+ @include focus-outline.focus-outline("outline");
64
64
  }
65
65
 
66
66
  & svg {
@@ -5,17 +5,17 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
11
- @use '@carbon/styles/scss/spacing';
10
+ @use "@carbon/styles/scss/theme";
11
+ @use "@carbon/styles/scss/spacing";
12
12
 
13
- @use '../../layout';
13
+ @use "../../layout";
14
14
 
15
15
  $config: () !default;
16
16
 
17
17
  $-default-config: (
18
- selector: 'blockquote',
18
+ selector: "blockquote",
19
19
  );
20
20
 
21
21
  /// @group block-quotation
@@ -24,7 +24,7 @@ $-default-config: (
24
24
  @mixin styles($config: $config) {
25
25
  $props: map.deep-merge($-default-config, $config);
26
26
 
27
- #{map.get($props, 'selector')} {
27
+ #{map.get($props, "selector")} {
28
28
  margin-block: layout.$mode--margin-block;
29
29
  margin-inline: spacing.$spacing-08;
30
30
  max-inline-size: 50ch;
@@ -56,7 +56,7 @@ $-default-config: (
56
56
  }
57
57
 
58
58
  & + cite::before {
59
- content: '';
59
+ content: "";
60
60
  margin-inline-end: spacing.$spacing-02;
61
61
  }
62
62
  }
@@ -5,17 +5,17 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '@carbon/styles/scss/theme';
11
- @use '@carbon/styles/scss/spacing';
10
+ @use "@carbon/styles/scss/theme";
11
+ @use "@carbon/styles/scss/spacing";
12
12
 
13
- @use '../../layout';
13
+ @use "../../layout";
14
14
 
15
15
  $config: () !default;
16
16
 
17
17
  $-default-config: (
18
- selector: 'body',
18
+ selector: "body",
19
19
  );
20
20
 
21
21
  /// @group body
@@ -24,7 +24,7 @@ $-default-config: (
24
24
  @mixin styles($config: $config) {
25
25
  $props: map.deep-merge($-default-config, $config);
26
26
 
27
- #{map.get($props, 'selector')} {
27
+ #{map.get($props, "selector")} {
28
28
  @include layout.mode--body;
29
29
  background-color: theme.$background;
30
30
  margin: 0;
@@ -5,14 +5,14 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- @use 'sass:map';
8
+ @use "sass:map";
9
9
 
10
- @use '../../layout';
10
+ @use "../../layout";
11
11
 
12
12
  $config: () !default;
13
13
 
14
14
  $-default-config: (
15
- selector: 'b, strong',
15
+ selector: "b, strong",
16
16
  );
17
17
 
18
18
  /// @group bold-text
@@ -21,7 +21,7 @@ $-default-config: (
21
21
  @mixin styles($config: $config) {
22
22
  $props: map.deep-merge($-default-config, $config);
23
23
 
24
- #{map.get($props, 'selector')} {
24
+ #{map.get($props, "selector")} {
25
25
  font-weight: 600;
26
26
  }
27
27
  }