- Notifications
You must be signed in to change notification settings - Fork1k
Commit0c203b0
authored
fix: correct markup for Abbr component (#19317)
Fixes some accidental styling issues introduced in#19242## Changes made- Updated styles- Added support for `className` prop so that we can override the stylesas needed- Removed the aria-label in favor of injecting the main text directly## Notes- This feels like a case where the changes in the previous PR wereactually *correct overall*, but something with our MUI+Tailwind setupcreated conflicting styles, and we accidentally introduced an underlinestyle that shouldn't be there- Removed the Aria label because I've realized in the past year thatAria is really easy to misuse, and it's best just to do things with thebase HTML features as much as possible. There's a risk that the old codehad compliance issues with certain types of screen readers (even thoughit worked fine when I did manual testing back in 2023). These changeshopefully remove those risks completely1 parent1ffc5a0 commit0c203b0
File tree
3 files changed
+50
-39
lines changed- site/src/components/Abbr
3 files changed
+50
-39
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 |
| - | |
12 |
| - | |
13 |
| - | |
14 |
| - | |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 | 10 |
| |
31 |
| - | |
| 11 | + | |
32 | 12 |
| |
33 | 13 |
| |
34 | 14 |
| |
| |||
43 | 23 |
| |
44 | 24 |
| |
45 | 25 |
| |
46 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
47 | 38 |
| |
48 | 39 |
| |
49 | 40 |
| |
50 |
| - | |
| 41 | + | |
51 | 42 |
| |
52 | 43 |
| |
53 | 44 |
| |
| |||
67 | 58 |
| |
68 | 59 |
| |
69 | 60 |
| |
70 |
| - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
71 | 70 |
| |
72 | 71 |
| |
73 | 72 |
| |
74 |
| - | |
| 73 | + | |
75 | 74 |
| |
76 | 75 |
| |
77 | 76 |
| |
| |||
91 | 90 |
| |
92 | 91 |
| |
93 | 92 |
| |
94 |
| - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 |
| |
96 | 103 |
| |
97 | 104 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
| |||
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| 26 | + | |
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
29 |
| - | |
30 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 |
| |
32 |
| - | |
33 | 35 |
| |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 |
| |
43 | 47 |
| |
44 | 48 |
| |
|
0 commit comments
Comments
(0)