@threadlabs/looma 0.27.3 → 0.27.4
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/components/ui-badge/ui-badge.html +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-badge.css +3 -3
- package/vue/UiBadge.vue +3 -3
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/components.css +63 -63
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<prop name="variant" type="keyword" values="solid, subtle, outline, inverse, overlay" default="subtle"
|
|
4
4
|
>Emphasis. subtle sets toned text over a soft wash; solid fills with the tone and uses contrasting text; outline keeps the surface with a toned edge.
|
|
5
5
|
inverse uses a translucent contrasting surface and toned ink for a count or label on a filled control of that tone. Neutral looks the same in solid and
|
|
6
|
-
subtle. overlay inherits the containing filled control's text colour on a faint translucent fill,
|
|
6
|
+
subtle. overlay inherits the containing filled control's text colour on a faint translucent fill, with a quiet single-pixel boundary and no shadow. Its small circle is
|
|
7
7
|
20px. When space is constrained, the label truncates with an ellipsis while its full text remains available.</prop>
|
|
8
8
|
<prop name="tone" type="keyword" values="neutral, accent, info, success, warning, danger" default="neutral"
|
|
9
9
|
>Which colour the badge speaks in. neutral is a quiet grey for plain labels; accent draws the eye in the accent colour; info, success, warning, and danger
|
|
@@ -317,11 +317,11 @@
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
/* A count can keep its containing control's contrasting ink instead of reversing it.
|
|
320
|
-
The faint fill
|
|
320
|
+
The faint fill preserves text contrast; a quiet boundary separates the count from its control. */
|
|
321
321
|
:host([variant="overlay"]) {
|
|
322
322
|
--_badge-outline-surface: var(--ui-badge-surface, color-mix(in srgb, currentColor 6%, transparent));
|
|
323
323
|
color: var(--ui-badge-text, inherit);
|
|
324
|
-
border-color: var(--ui-badge-border, transparent);
|
|
324
|
+
border-color: var(--ui-badge-border, color-mix(in srgb, currentColor 20%, transparent));
|
|
325
325
|
box-shadow: none;
|
|
326
326
|
}
|
|
327
327
|
|