@carbon/element-styles 0.3.11 → 0.3.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon/element-styles",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "description": "An experimental styling system for native HTML elements, relying on semantic, attribute-focused selectors instead of class names.",
5
5
  "keywords": [
6
6
  "carbon",
@@ -54,7 +54,7 @@
54
54
  "lightningcss": "^1.33.0",
55
55
  "marked": "^18.0.6",
56
56
  "marked-highlight": "^2.2.4",
57
- "oxfmt": "^0.65.0",
57
+ "oxfmt": "^0.66.0",
58
58
  "oxlint": "^1.76.0",
59
59
  "sass": "^1.101.0",
60
60
  "typescript": "^7.0.2",
@@ -103,6 +103,12 @@ $-default-config: (
103
103
  inline-size: 1rem;
104
104
  }
105
105
 
106
+ & > nav ul li a:has(svg:only-child) {
107
+ padding-inline: unset;
108
+ inline-size: layout.$size--block-size;
109
+ justify-content: center;
110
+ }
111
+
106
112
  & > nav a {
107
113
  @include layout.mode--body-compact;
108
114
  color: theme.$text-primary;
@@ -146,6 +146,19 @@ $-default-config: (
146
146
  margin-inline: layout.$density--padding;
147
147
  }
148
148
 
149
+ & > ul > li a:has(svg) {
150
+ padding-inline-end: calc(layout.$density--padding + 1rem + layout.$density--padding);
151
+ }
152
+
153
+ & > ul > li a svg {
154
+ fill: currentColor;
155
+ block-size: 1rem;
156
+ inline-size: 1rem;
157
+ position: absolute;
158
+ inset-inline-end: layout.$density--padding;
159
+ inset-block-start: layout.$size--padding-block-start;
160
+ }
161
+
149
162
  & + main,
150
163
  & + main + footer {
151
164
  margin-inline-start: 16rem;