@carbon/styles 1.88.0-rc.0 → 1.88.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.
@@ -33,7 +33,7 @@ describe('@carbon/styles/scss/theme', () => {
33
33
  theme: true,
34
34
  });
35
35
  expect(api.variables).toMatchInlineSnapshot(`
36
- Array [
36
+ [
37
37
  "fallback",
38
38
  "theme",
39
39
  "background",
@@ -25,7 +25,7 @@ describe('@carbon/styles/scss/themes', () => {
25
25
 
26
26
  const { value: api } = get('api');
27
27
  expect(api).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "white",
30
30
  "g10",
31
31
  "g90",
@@ -50,7 +50,7 @@ describe('@carbon/styles/scss/type', () => {
50
50
  'font-weight': true,
51
51
  });
52
52
  expect(api.variables).toMatchInlineSnapshot(`
53
- Array [
53
+ [
54
54
  "caption-01",
55
55
  "caption-02",
56
56
  "label-01",
@@ -154,12 +154,12 @@ describe('@carbon/styles/scss/type', () => {
154
154
  describe('type custom properties', () => {
155
155
  it('should emit the css Custom properties for non-fluid typography', async () => {
156
156
  const { result } = await render(`
157
- @use '../scss/type' as *;
157
+ @use '../type';
158
158
 
159
- .selector {
160
- @include emit-type-custom-properties()
161
- }
162
- `);
159
+ .selector {
160
+ @include type.emit-type-custom-properties()
161
+ }
162
+ `);
163
163
  const { stylesheet } = css.parse(result.css.toString());
164
164
  const rules = stylesheet.rules.filter(
165
165
  (rule) => rule.selectors[0] === '.selector'
@@ -25,7 +25,7 @@ describe('scss/components/accordion', () => {
25
25
  `);
26
26
  expect(unwrap('mixin')).toBe(true);
27
27
  expect(unwrap('variables')).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "flex-direction",
30
30
  "justify-content",
31
31
  "arrow-margin",
@@ -25,7 +25,7 @@ describe('scss/components/button', () => {
25
25
  `);
26
26
  expect(unwrap('mixin')).toBe(true);
27
27
  expect(unwrap('variables')).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "button-font-weight",
30
30
  "button-font-size",
31
31
  "button-border-radius",
@@ -25,7 +25,7 @@ describe('scss/components/code-snippet', () => {
25
25
  `);
26
26
  expect(unwrap('mixin')).toBe(true);
27
27
  expect(unwrap('variables')).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "copy-active",
30
30
  "copy-btn-feedback",
31
31
  ]
@@ -25,7 +25,7 @@ describe('scss/components/data-table', () => {
25
25
  `);
26
26
  expect(unwrap('mixin')).toBe(true);
27
27
  expect(unwrap('variables')).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "data-table-column-hover",
30
30
  ]
31
31
  `);
@@ -25,7 +25,7 @@ describe('scss/components/form', () => {
25
25
  `);
26
26
  expect(unwrap('mixin')).toBe(true);
27
27
  expect(unwrap('variables')).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "input-label-weight",
30
30
  ]
31
31
  `);
@@ -25,7 +25,7 @@ describe('scss/components/list-box', () => {
25
25
  `);
26
26
  expect(unwrap('mixin')).toBe(true);
27
27
  expect(unwrap('variables')).toMatchInlineSnapshot(`
28
- Array [
28
+ [
29
29
  "list-box-width",
30
30
  "list-box-height",
31
31
  "list-box-inline-height",
@@ -47,7 +47,7 @@ $link-focus-text-color: custom-property.get-var(
47
47
  text-decoration: underline;
48
48
  }
49
49
 
50
- &:active,
50
+ &:active:not(.#{$prefix}--link--disabled),
51
51
  &:active:visited,
52
52
  &:active:visited:hover {
53
53
  @include focus-outline;
@@ -57,7 +57,7 @@ $link-focus-text-color: custom-property.get-var(
57
57
  text-decoration: underline;
58
58
  }
59
59
 
60
- &:focus {
60
+ &:focus:not(.#{$prefix}--link--disabled) {
61
61
  @include focus-outline;
62
62
 
63
63
  outline-color: $link-focus-text-color;