Commit 03b42cf
authored
13 links rely on color to be distinguishable on item view page (ufal#79)
* Improve link accessibility on item pages
Adds underline and focus styles to links in full and simple item pages to meet WCAG 1.4.1 requirements, ensuring links are distinguishable by more than color alone and have visible focus outlines.
* Exclude icon links from underline accessibility styles
Updated SCSS selectors to prevent Font Awesome icon links (.fab, .fas, .far) from receiving underline styles intended for accessible text links, ensuring visual consistency and improved accessibility compliance.
* Update link styles for accessibility compliance
Replaces underline styles with bold and italic for non-button links in full and simple item page components to ensure links are distinguishable by more than color alone, addressing WCAG 1.4.1 requirements.
* Use $primary variable for link focus outline color
Replaces hardcoded #1459c4 color with the $primary SCSS variable for link focus outlines in both full and simple item page components to improve theme consistency.
* Exclude more classes from link styling in full item page
Added .badge, .nav-link, and .dropdown-item to the list of excluded classes for custom link styles to prevent unintended styling on these elements and improve WCAG compliance.
* Remove unnecessary !important from link styles
Cleaned up SCSS for full and simple item pages by removing redundant !important flags from link styling rules, improving maintainability and specificity.1 parent 82eb62a commit 03b42cf
File tree
2 files changed
+32
-0
lines changed- src/app/item-page
- full
- simple
2 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments