Commit 0acba30
authored
fix(typography): scale link underline with font size, include pseudo styling in utility (#410)
This commit:
- Scales the link decoration (offset + thickness) with the font size,
fixing an issue where no change would be visible when users customize
the font size in their browsers
- Moves the hover and focus styles that are currently defined outside
the `@utility` directive into the utility directive, removing the need
to manually add them when using typography utilities with `@apply`
Addresses functional review feedback from RISDEV-94501 parent 4a6fd1b commit 0acba30
1 file changed
+58
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
281 | 290 | | |
282 | 291 | | |
283 | 292 | | |
| |||
286 | 295 | | |
287 | 296 | | |
288 | 297 | | |
289 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
290 | 308 | | |
291 | 309 | | |
292 | 310 | | |
| |||
295 | 313 | | |
296 | 314 | | |
297 | 315 | | |
298 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
299 | 326 | | |
300 | 327 | | |
301 | 328 | | |
| |||
304 | 331 | | |
305 | 332 | | |
306 | 333 | | |
307 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
308 | 344 | | |
309 | 345 | | |
310 | 346 | | |
| |||
313 | 349 | | |
314 | 350 | | |
315 | 351 | | |
316 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
317 | 362 | | |
318 | 363 | | |
319 | 364 | | |
| |||
322 | 367 | | |
323 | 368 | | |
324 | 369 | | |
325 | | - | |
326 | | - | |
| 370 | + | |
327 | 371 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
346 | 375 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
355 | 380 | | |
0 commit comments