@taiga-ui/styles 5.18.0 → 5.19.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.
@@ -292,7 +292,7 @@ tui-textfield:where(*&) {
292
292
  optgroup,
293
293
  option {
294
294
  // Windows OS only
295
- background-color: var(--tui-background-elevation-3);
295
+ background-color: var(--tui-background-elevation-1);
296
296
  }
297
297
 
298
298
  optgroup,
@@ -18,7 +18,7 @@
18
18
  * @see-also
19
19
  * Label
20
20
  */
21
- [tuiTitle]:where(*&) {
21
+ *:where([tuiTitle]&) {
22
22
  position: relative;
23
23
  display: flex;
24
24
  min-inline-size: 0;
@@ -26,32 +26,56 @@
26
26
  text-align: start;
27
27
  gap: 0.25rem;
28
28
  margin: 0;
29
+ padding: 0;
30
+ border: 0;
29
31
  font: var(--tui-typography-ui-m);
30
32
 
31
- &[data-size='s'] {
33
+ :where([tuiSubtitle]) {
34
+ font: var(--tui-typography-ui-s);
35
+ margin: 0;
36
+ padding: 0;
37
+
38
+ &:is(legend) {
39
+ margin-block-end: 0.25rem;
40
+ }
41
+ }
42
+
43
+ &:where([data-size='s']) {
32
44
  gap: 0.125rem;
33
45
  font: var(--tui-typography-body-s);
34
46
 
35
47
  [tuiSubtitle] {
36
48
  font: var(--tui-typography-body-xs);
49
+
50
+ &:is(legend) {
51
+ margin-block-end: 0.125rem;
52
+ }
37
53
  }
38
54
  }
39
55
 
40
- &[data-size='m'] {
56
+ &:where([data-size='m']) {
41
57
  gap: 0.125rem;
42
58
  font: var(--tui-typography-heading-h5);
43
59
 
44
60
  [tuiSubtitle] {
45
61
  font: var(--tui-typography-body-m);
62
+
63
+ &:is(legend) {
64
+ margin-block-end: 0.125rem;
65
+ }
46
66
  }
47
67
  }
48
68
 
49
- &[data-size='l'] {
69
+ &:where([data-size='l']) {
50
70
  gap: 0.5rem;
51
71
  font: var(--tui-typography-heading-h3);
52
72
 
53
73
  [tuiSubtitle] {
54
74
  font: var(--tui-typography-body-m);
75
+
76
+ &:is(legend) {
77
+ margin-block-end: 0.5rem;
78
+ }
55
79
  }
56
80
  }
57
81
 
@@ -64,11 +88,6 @@
64
88
  margin: 0;
65
89
  font: inherit;
66
90
  }
67
-
68
- [tuiSubtitle] {
69
- font: var(--tui-typography-ui-s);
70
- margin: 0;
71
- }
72
91
  }
73
92
 
74
93
  [tuiButton]:where(*&) [tuiTitle] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/styles",
3
- "version": "5.18.0",
3
+ "version": "5.19.0",
4
4
  "description": "Framework-agnostic package with styles for Taiga UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,6 +25,6 @@
25
25
  "./*": "./*"
26
26
  },
27
27
  "peerDependencies": {
28
- "@taiga-ui/design-tokens": "~0.312.0"
28
+ "@taiga-ui/design-tokens": "~0.315.0"
29
29
  }
30
30
  }