@carbon/styles 1.102.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 +14 -2
- package/css/styles.min.css +1 -1
- package/package.json +9 -9
- package/scss/components/link/_link.scss +18 -3
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.
|
|
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.
|
|
44
|
-
"@carbon/feature-flags": "^1.
|
|
45
|
-
"@carbon/grid": "^11.
|
|
46
|
-
"@carbon/layout": "^11.
|
|
47
|
-
"@carbon/motion": "^11.
|
|
48
|
-
"@carbon/themes": "^11.
|
|
49
|
-
"@carbon/type": "^11.
|
|
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
|
|
|
@@ -36,7 +37,7 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
36
37
|
@include component-reset.reset;
|
|
37
38
|
@include type.type-style('body-compact-01');
|
|
38
39
|
|
|
39
|
-
display: inline
|
|
40
|
+
display: inline;
|
|
40
41
|
color: $link-text-color;
|
|
41
42
|
outline: none;
|
|
42
43
|
text-decoration: none;
|
|
@@ -115,7 +116,21 @@ $link-focus-text-color: custom-property.get-var(
|
|
|
115
116
|
|
|
116
117
|
.#{$prefix}--link__icon {
|
|
117
118
|
display: inline-flex;
|
|
118
|
-
align-
|
|
119
|
+
align-items: center;
|
|
120
|
+
block-size: 1lh;
|
|
121
|
+
line-height: inherit;
|
|
119
122
|
margin-inline-start: $spacing-03;
|
|
123
|
+
vertical-align: text-bottom;
|
|
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);
|
|
120
135
|
}
|
|
121
136
|
}
|