@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.
- package/css/styles.css +4 -4
- package/css/styles.min.css +1 -1
- package/package.json +11 -11
- package/scss/__tests__/__snapshots__/colors-test.js.snap +16 -16
- package/scss/__tests__/__snapshots__/config-test.js.snap +7 -7
- package/scss/__tests__/__snapshots__/motion-test.js.snap +8 -8
- package/scss/__tests__/__snapshots__/spacing-test.js.snap +4 -4
- package/scss/__tests__/__snapshots__/type-test.js.snap +2576 -2576
- package/scss/__tests__/theme-test.js +1 -1
- package/scss/__tests__/themes-test.js +1 -1
- package/scss/__tests__/type-test.js +6 -6
- package/scss/components/__tests__/accordion-test.js +1 -1
- package/scss/components/__tests__/button-test.js +1 -1
- package/scss/components/__tests__/code-snippet-test.js +1 -1
- package/scss/components/__tests__/data-table-test.js +1 -1
- package/scss/components/__tests__/form-test.js +1 -1
- package/scss/components/__tests__/list-box-test.js +1 -1
- package/scss/components/link/_link.scss +2 -2
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +187 -187
- package/scss/fonts/__tests__/fonts-test.js +2 -4
|
@@ -50,7 +50,7 @@ describe('@carbon/styles/scss/type', () => {
|
|
|
50
50
|
'font-weight': true,
|
|
51
51
|
});
|
|
52
52
|
expect(api.variables).toMatchInlineSnapshot(`
|
|
53
|
-
|
|
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
|
-
|
|
157
|
+
@use '../type';
|
|
158
158
|
|
|
159
|
-
|
|
160
|
-
|
|
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'
|
|
@@ -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;
|