@carbon/styles 1.103.0-rc.0 → 1.103.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 +9 -0
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/components/link/_link.scss +13 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.103.0
|
|
4
|
+
"version": "1.103.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@carbon/colors": "^11.49.0
|
|
44
|
-
"@carbon/feature-flags": "^1.2.0
|
|
45
|
-
"@carbon/grid": "^11.52.0
|
|
46
|
-
"@carbon/layout": "^11.50.0
|
|
47
|
-
"@carbon/motion": "^11.43.0
|
|
48
|
-
"@carbon/themes": "^11.70.0
|
|
49
|
-
"@carbon/type": "^11.56.0
|
|
43
|
+
"@carbon/colors": "^11.49.0",
|
|
44
|
+
"@carbon/feature-flags": "^1.2.0",
|
|
45
|
+
"@carbon/grid": "^11.52.0",
|
|
46
|
+
"@carbon/layout": "^11.50.0",
|
|
47
|
+
"@carbon/motion": "^11.43.0",
|
|
48
|
+
"@carbon/themes": "^11.70.0",
|
|
49
|
+
"@carbon/type": "^11.56.0",
|
|
50
50
|
"@ibm/plex": "6.0.0-next.6",
|
|
51
51
|
"@ibm/plex-mono": "1.1.0",
|
|
52
52
|
"@ibm/plex-sans": "1.1.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"scss/**/*.css",
|
|
76
76
|
"css/**/*.css"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "aeaaa31889990fc76c7e0e8a29ec0bf96ce33f82"
|
|
79
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//
|
|
2
|
-
// Copyright IBM Corp. 2016,
|
|
2
|
+
// Copyright IBM Corp. 2016, 2026
|
|
3
3
|
//
|
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@use '../../theme' as *;
|
|
12
12
|
@use '../../type';
|
|
13
13
|
@use '../../utilities/component-reset';
|
|
14
|
+
@use '../../utilities/convert';
|
|
14
15
|
@use '../../utilities/custom-property';
|
|
15
16
|
@use '../../utilities/focus-outline' as *;
|
|
16
17
|
|
|
@@ -121,4 +122,15 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
121
122
|
margin-inline-start: $spacing-03;
|
|
122
123
|
vertical-align: text-bottom;
|
|
123
124
|
}
|
|
125
|
+
|
|
126
|
+
// Large icon size
|
|
127
|
+
.#{$prefix}--link--lg .#{$prefix}--link__icon > svg {
|
|
128
|
+
block-size: convert.to-rem(20px);
|
|
129
|
+
inline-size: convert.to-rem(20px);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// For large links, set block-size to match icon size to prevent misalignment
|
|
133
|
+
.#{$prefix}--link--lg .#{$prefix}--link__icon {
|
|
134
|
+
block-size: convert.to-rem(20px);
|
|
135
|
+
}
|
|
124
136
|
}
|