@ndla/primitives 1.0.80-alpha.0 → 1.0.81-alpha.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.
@@ -55,6 +55,7 @@
55
55
  "borderColor]___[value:stroke.default",
56
56
  "marginInlineStart]___[value:small",
57
57
  "paddingInlineStart]___[value:small",
58
+ "marginInlineStart]___[value:0 !important]___[cond:& > li<___>& > ul",
58
59
  "position]___[value:absolute]___[cond:& > li<___>_before",
59
60
  "transform]___[value:translateX(calc(-100% + (token(spacing.small) * -1)))]___[cond:& > li<___>_before",
60
61
  "fontVariantNumeric]___[value:tabular-nums]___[cond:& > li<___>_before",
@@ -87,9 +88,13 @@
87
88
  "content]___[value:counter(level1, lower-roman) '. ']___[cond:& > li<___>& > ol[data-variant='letters'] > li<___>& > ol[data-variant='letters'] > li<___>_before",
88
89
  "listStyle]___[value:revert",
89
90
  "marginInlineStart]___[value:medium",
90
- "marginInlineStart]___[value:0]___[cond:& ul",
91
+ "marginInlineStart]___[value:0]___[cond:& ul",
91
92
  "paddingInlineStart]___[value:small]___[cond:& li",
92
93
  "color]___[value:icon.strong]___[cond:& li<___>_marker",
94
+ "marginInlineStart]___[value:0 !important]___[cond:& li<___>& > ol",
95
+ "listStyleType]___[value:disc",
96
+ "listStyleType]___[value:circle]___[cond:& > li > ul",
97
+ "listStyleType]___[value:square]___[cond:& > li > ul<___>& > li > ul",
93
98
  "fontWeight]___[value:bold]___[cond:& dt",
94
99
  "marginInlineStart]___[value:medium]___[cond:& dd",
95
100
  "paddingInline]___[value:xsmall",
package/dist/styles.css CHANGED
@@ -1155,6 +1155,10 @@
1155
1155
  border-color: var(--colors-stroke-default);
1156
1156
  }
1157
1157
 
1158
+ .li-t_disc {
1159
+ list-style-type: disc;
1160
+ }
1161
+
1158
1162
  .bg-c_surface\.brand\.1\.moderate {
1159
1163
  background-color: var(--colors-surface-brand-1-moderate);
1160
1164
  }
@@ -1585,7 +1589,7 @@
1585
1589
  padding-inline-start: 0;
1586
1590
  }
1587
1591
 
1588
- .\[\&__ul\]\:ms_0 ul {
1592
+ .\[\&_ul\]\:ms_0 ul {
1589
1593
  margin-inline-start: 0;
1590
1594
  }
1591
1595
 
@@ -2009,6 +2013,10 @@
2009
2013
  transition-property: background, border-color, border, border-radius;
2010
2014
  }
2011
2015
 
2016
+ .\[\&_\>_li_\>_ul\]\:li-t_circle > li > ul {
2017
+ list-style-type: circle;
2018
+ }
2019
+
2012
2020
  .\[\&_dt\]\:fw_bold dt {
2013
2021
  font-weight: var(--font-weights-bold);
2014
2022
  }
@@ -2498,6 +2506,10 @@
2498
2506
  color: var(--colors-text-disabled);
2499
2507
  }
2500
2508
 
2509
+ .\[\&_\>_li\]\:\[\&_\>_ul\]\:ms_0\! > li > ul {
2510
+ margin-inline-start: 0 !important;
2511
+ }
2512
+
2501
2513
  .\[\&_\>_li\]\:before\:pos_absolute > li::before {
2502
2514
  position: absolute;
2503
2515
  }
@@ -2514,6 +2526,10 @@
2514
2526
  color: var(--colors-icon-strong);
2515
2527
  }
2516
2528
 
2529
+ .\[\&_li\]\:\[\&_\>_ol\]\:ms_0\! li > ol {
2530
+ margin-inline-start: 0 !important;
2531
+ }
2532
+
2517
2533
  .disabled\:\[\&_svg\]\:c_text\.onAction:is(:disabled, [disabled], [data-disabled], [aria-disabled='true']) svg {
2518
2534
  color: var(--colors-text-on-action);
2519
2535
  }
@@ -2700,6 +2716,10 @@
2700
2716
  content: counter(level1, upper-alpha) '. ';
2701
2717
  }
2702
2718
 
2719
+ .\[\&_\>_li_\>_ul\]\:\[\&_\>_li_\>_ul\]\:li-t_square > li > ul > li > ul {
2720
+ list-style-type: square;
2721
+ }
2722
+
2703
2723
  .disabled\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled='true']):is(:hover, [data-hover]) {
2704
2724
  border-color: var(--colors-stroke-disabled);
2705
2725
  }
@@ -20,6 +20,9 @@ const orderedListRecipe = cva({
20
20
  marginInlineStart: "small",
21
21
  paddingInlineStart: "small",
22
22
  [LIST_ITEM]: {
23
+ "& > ul": {
24
+ marginInlineStart: "0 !important"
25
+ },
23
26
  _before: {
24
27
  position: "absolute",
25
28
  transform: "translateX(calc(-100% + (token(spacing.small) * -1)))",
@@ -149,7 +152,7 @@ export const UnOrderedList = styled("ul", {
149
152
  listStyle: "revert",
150
153
  marginInlineStart: "medium",
151
154
  paddingInlineStart: "small",
152
- "& ul": {
155
+ "& ul": {
153
156
  marginInlineStart: "0"
154
157
  },
155
158
  "& li": {
@@ -157,6 +160,16 @@ export const UnOrderedList = styled("ul", {
157
160
  paddingInlineStart: "small",
158
161
  _marker: {
159
162
  color: "icon.strong"
163
+ },
164
+ "& > ol": {
165
+ marginInlineStart: "0 !important"
166
+ }
167
+ },
168
+ listStyleType: "disc",
169
+ "& > li > ul": {
170
+ listStyleType: "circle",
171
+ "& > li > ul": {
172
+ listStyleType: "square"
160
173
  }
161
174
  }
162
175
  }
@@ -26,6 +26,9 @@ const orderedListRecipe = (0, _css.cva)({
26
26
  marginInlineStart: "small",
27
27
  paddingInlineStart: "small",
28
28
  [LIST_ITEM]: {
29
+ "& > ul": {
30
+ marginInlineStart: "0 !important"
31
+ },
29
32
  _before: {
30
33
  position: "absolute",
31
34
  transform: "translateX(calc(-100% + (token(spacing.small) * -1)))",
@@ -155,7 +158,7 @@ const UnOrderedList = exports.UnOrderedList = (0, _jsx2.styled)("ul", {
155
158
  listStyle: "revert",
156
159
  marginInlineStart: "medium",
157
160
  paddingInlineStart: "small",
158
- "& ul": {
161
+ "& ul": {
159
162
  marginInlineStart: "0"
160
163
  },
161
164
  "& li": {
@@ -163,6 +166,16 @@ const UnOrderedList = exports.UnOrderedList = (0, _jsx2.styled)("ul", {
163
166
  paddingInlineStart: "small",
164
167
  _marker: {
165
168
  color: "icon.strong"
169
+ },
170
+ "& > ol": {
171
+ marginInlineStart: "0 !important"
172
+ }
173
+ },
174
+ listStyleType: "disc",
175
+ "& > li > ul": {
176
+ listStyleType: "circle",
177
+ "& > li > ul": {
178
+ listStyleType: "square"
166
179
  }
167
180
  }
168
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.80-alpha.0",
3
+ "version": "1.0.81-alpha.0",
4
4
  "description": "Primitive components for NDLA",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "53e4047f2320059d2af1315479140bd0e49c220f"
46
+ "gitHead": "0193b3dca20d4292a4937549ec3e0c1c834643ff"
47
47
  }