@threadlabs/looma 0.11.4 → 0.11.5
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-button/ui-button.html +16 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-button.css +20 -0
- package/vue/UiButton.vue +16 -0
- package/vue/chunks/UiButton.js +1 -1
- package/vue/components.css +49 -34
|
@@ -260,6 +260,22 @@
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
/* Under touch, every button's press lands within the control minimum: an invisible hit area,
|
|
264
|
+
centred on it, like IconButton's. A standalone link-style button (a "See all" beside a
|
|
265
|
+
heading) is a target of its own, not text, so it gets one too. */
|
|
266
|
+
html[data-ui-input-modality="touch"] :host {
|
|
267
|
+
position: relative;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
html[data-ui-input-modality="touch"] :host::after {
|
|
271
|
+
position: absolute;
|
|
272
|
+
inset: 50% auto auto 50%;
|
|
273
|
+
inline-size: max(100%, var(--ui-control-min-block-size));
|
|
274
|
+
block-size: max(100%, var(--ui-control-min-block-size));
|
|
275
|
+
transform: translate(-50%, -50%);
|
|
276
|
+
content: "";
|
|
277
|
+
}
|
|
278
|
+
|
|
263
279
|
/* Link: an inline text action. No box, padding, or minimum height (inline targets are exempt under
|
|
264
280
|
WCAG 2.5.8); the inherited font; an underline that strengthens on hover; a visible focus ring. */
|
|
265
281
|
:host-state([variant="link"]) {
|