Commit caa3cf4
authored
[Fix]: Enhance link component to support underline styling and improvement (#1739)
### File Changes (3 files modified):
1. `link.js` - Enhanced Link component with configurable underline
styling support
2. `src/components/contributors.js` - Applied underline styling to
contributor and commit links for better accessibility
3. `table-of-contents.js` - Added underline styling to table of contents
navigation links
### Summary:
Enhanced the Link component to support optional underline styling
through a showUnderline prop and applied underline styling to key
navigation elements across the documentation site to improve link
visibility and accessibility compliance.
### Changes Overview:
- Added showUnderline prop to Link component for configurable text
decoration
- Applied underlines to contributor profile links and commit date links
- Enhanced table of contents with underlined navigation links
- Maintained backward compatibility with existing link styling
### Before
<img width="359" height="408" alt="image"
src="https://github.com/user-attachments/assets/8c953dbf-d57e-45ef-a392-dd5cd4cd63dc"
/>
<img width="307" height="358" alt="image"
src="https://github.com/user-attachments/assets/d0df60bd-ab6a-4d5d-85ec-a1cbca23ac2f"
/>
### After
<img width="340" height="404" alt="image"
src="https://github.com/user-attachments/assets/f5cb22d2-5791-4b37-a7b6-153db79f4d3c"
/>
<img width="307" height="358" alt="image"
src="https://github.com/user-attachments/assets/1e360b38-1974-4b0a-b04e-90586d6692e4"
/>1 parent 213100b commit caa3cf4
3 files changed
+24
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
0 commit comments