@sveltia/ui 0.15.4 → 0.15.6

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.
@@ -309,8 +309,12 @@ button:global(.link) :global(.label) {
309
309
  padding: 0;
310
310
  line-height: var(--sui-line-height-compact);
311
311
  text-decoration: var(--sui-button-link-text-decoration, none);
312
+ text-underline-offset: 2px;
312
313
  white-space: normal;
313
314
  }
315
+ :global(:root[data-underline-links="true"]) button:global(.link) :global(.label), :global(:host[data-underline-links="true"]) button:global(.link) :global(.label) {
316
+ text-decoration: underline;
317
+ }
314
318
  button:global(.link):hover :global(.label), button:global(.link):focus :global(.label), button:global(.link):active :global(.label) {
315
319
  text-decoration: var(--sui-button-link-text-decoration-focus, underline);
316
320
  }
@@ -141,10 +141,11 @@
141
141
  margin: var(--sui-vertical-tab-list-margin, var(--sui-tab-list-margin, 0 32px 0 0));
142
142
  border-width: var(--sui-vertical-tab-list-border-width, var(--sui-tab-list-border-width, 0 1px 0 0));
143
143
  padding: var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));
144
- width: var(--sui-vertical-tab-list-width, 240px);
144
+ width: var(--sui-vertical-tab-list-width, auto);
145
145
  }
146
146
  .tab-list[aria-orientation=vertical] :global(button) {
147
147
  justify-content: var(--sui-vertical-tab-justify-content, flex-start);
148
+ padding-right: 32px;
148
149
  width: var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));
149
150
  height: var(--sui-vertical-tab-height, var(--sui-tab-height, auto));
150
151
  }
@@ -489,6 +489,13 @@
489
489
  :global(a) {
490
490
  color: var(--sui-primary-accent-color-text);
491
491
  text-decoration: none;
492
+ text-underline-offset: 2px;
493
+ }
494
+ :global(a:hover), :global(a:focus), :global(a:active) {
495
+ text-decoration: underline;
496
+ }
497
+ :global(:root[data-underline-links=true]) :global(a), :global(:host[data-underline-links=true]) :global(a) {
498
+ text-decoration: underline;
492
499
  }
493
500
 
494
501
  :global(p),
@@ -95,6 +95,18 @@ strong {
95
95
  a {
96
96
  color: var(--sui-primary-accent-color-text);
97
97
  text-decoration: none;
98
+ text-underline-offset: 2px;
99
+
100
+ &:hover,
101
+ &:focus,
102
+ &:active {
103
+ text-decoration: underline;
104
+ }
105
+
106
+ :root[data-underline-links="true"] &,
107
+ :host[data-underline-links="true"] & {
108
+ text-decoration: underline;
109
+ }
98
110
  }
99
111
 
100
112
  p,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.15.4",
3
+ "version": "0.15.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "publishConfig": {