@taiga-ui/styles 5.8.0 → 5.9.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.
@@ -43,6 +43,7 @@
43
43
  padding: 0.25rem;
44
44
  font: var(--tui-typography-body-l);
45
45
  font-weight: bold;
46
+ aspect-ratio: 1;
46
47
  opacity: 0.999; // Kick in hardware rendering layer to avoid artifacts on the edges
47
48
 
48
49
  .interactive({
@@ -133,7 +134,7 @@
133
134
  }
134
135
 
135
136
  &:not([data-shape='square']) {
136
- --t-radius: calc(var(--t-size) / 2);
137
+ --t-radius: calc(var(--t-size) / 2) !important;
137
138
  }
138
139
 
139
140
  &._initials {
@@ -116,7 +116,9 @@
116
116
  }
117
117
  }
118
118
 
119
- // hide an element visually without hiding it from screen readers
119
+ /**
120
+ * @deprecated remove in v6
121
+ */
120
122
  .sr-only() {
121
123
  position: absolute;
122
124
  clip: rect(1px, 1px, 1px, 1px);
@@ -165,5 +167,5 @@
165
167
  }
166
168
 
167
169
  .tui-mask(@x, @y, @r) {
168
- mask-image: radial-gradient(circle at @x @y, transparent @r, black @r);
170
+ mask-image: radial-gradient(circle at @x @y, transparent calc(@r - 0.5px), black @r);
169
171
  }
@@ -113,7 +113,9 @@
113
113
  }
114
114
  }
115
115
 
116
- // hide an element visually without hiding it from screen readers
116
+ /**
117
+ * @deprecated remove in v6
118
+ */
117
119
  @mixin sr-only() {
118
120
  position: absolute;
119
121
  clip: rect(1px, 1px, 1px, 1px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/styles",
3
- "version": "5.8.0",
3
+ "version": "5.9.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.301.0"
28
+ "@taiga-ui/design-tokens": "~0.302.0"
29
29
  }
30
30
  }