@eagami/ui 5.76.0 → 5.77.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eagami/ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.77.0",
|
|
4
4
|
"description": "Lightweight, accessible, themeable Angular UI component library and icon set built on CSS custom properties",
|
|
5
5
|
"author": "Michal Wiraszka <michal@eagami.com>",
|
|
6
6
|
"license": "MIT",
|
package/src/styles/_mixins.scss
CHANGED
|
@@ -11,19 +11,20 @@ $target-size-min: 24px;
|
|
|
11
11
|
// transparent, so it reads the same on any surface, however coloured. Pass a full
|
|
12
12
|
// box-shadow value to draw a halo instead, such as an error ring; box-shadow is
|
|
13
13
|
// dropped in forced-colors (Windows High Contrast) mode, so a real outline stands
|
|
14
|
-
// in for it there.
|
|
15
|
-
|
|
14
|
+
// in for it there. Pass `$offset` to move the outline's gap, which a negative
|
|
15
|
+
// value turns inward.
|
|
16
|
+
@mixin focus-ring($ring: null, $offset: 2px) {
|
|
16
17
|
@if $ring {
|
|
17
18
|
outline: none;
|
|
18
19
|
box-shadow: $ring;
|
|
19
20
|
} @else {
|
|
20
21
|
outline: var(--border-width-medium) solid var(--color-border-focus);
|
|
21
|
-
outline-offset:
|
|
22
|
+
outline-offset: $offset;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
@media (forced-colors: active) {
|
|
25
26
|
outline: 2px solid Highlight;
|
|
26
|
-
outline-offset:
|
|
27
|
+
outline-offset: $offset;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
package/types/eagami-ui.d.ts
CHANGED
|
@@ -1967,7 +1967,10 @@ export type ButtonAlign = 'start' | 'center' | 'end';
|
|
|
1967
1967
|
* while preserving the rendered width. Chrome is tunable per instance via
|
|
1968
1968
|
* `--ea-button-padding`, `--ea-button-min-height` and `--ea-button-radius`,
|
|
1969
1969
|
* which is how an icon-only button comes down to little more than its glyph
|
|
1970
|
-
* and how a call-to-action becomes a pill
|
|
1970
|
+
* and how a call-to-action becomes a pill, and `--ea-button-focus-ring-offset`
|
|
1971
|
+
* moves the focus ring's gap, which a negative length draws inside a button
|
|
1972
|
+
* packed too tightly among others for the ring to fit around it. For
|
|
1973
|
+
* navigation, put
|
|
1971
1974
|
* `ButtonLinkComponent` on an anchor instead (`<a eaButtonLink href="...">`):
|
|
1972
1975
|
* it takes the same styling inputs and keeps real link behaviour.
|
|
1973
1976
|
*/
|