Commit db78ca3
authored
## Description
<!--- Describe your changes -->
Tab links throughout the app were provided href values of
`javascript:void(0)` to prevent navigation. These void calls were
replaced with identifiers that reference actual sections within the app.
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
Using `javascript:void(0)` calls provide a poor experience for users as
they provide no indication that a real destination exists for the link
within the document. Ideally, we would make these elements buttons, but
we are currently constrained by `react-bootstrap` and how it implements
tabs. The alternatives: 1) remove the `event.preventDefault()` and the
tabs will navigate appropriately, but this causes a full page reload
every time by `react-router`, or 2) swap the links with buttons, but
this would break much of the functionality and visual styling.
<!--- If it fixes an open issue, please link to the issue here. -->
[PP-3575](https://ebce-lyrasis.atlassian.net/browse/PP-3575)
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
Manually tested that the tabbing still works as intended.
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] I have updated the documentation accordingly.
- [x] All new and existing tests passed.
[PP-3575]:
https://ebce-lyrasis.atlassian.net/browse/PP-3575?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 5002240 commit db78ca3
File tree
5 files changed
+10
-4
lines changed- src/components
- __tests__
5 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments