Fix link arialabel overrides externalIconAriaLabel when both are set
Description
When link has only externalIconAriaLabel, focus on link announces [link content] + [externalIconAriaLabel] But when arialabel and externalIconAriaLabel both set, it only announces [arialabel] AWSUI-19310
How has this been tested?
[How did you test to verify your changes?]
[How can reviewers test these changes efficiently?]
[Check for unexpected visual regressions, see CONTRIBUTING.md for details.]
Documentation changes
[Do the changes include any API documentation changes?]
- [ ] Yes, this change contains documentation changes.
- [ ] No.
Related Links
[Attach any related links/pull request for this change]
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
- [ ] Changes are backward-compatible if not indicated, see
CONTRIBUTING.md. - [ ] Changes do not include unsupported browser features, see
CONTRIBUTING.md. - [ ] Changes were manually tested for accessibility, see accessibility guidelines.
Security
- [ ] If the code handles URLs: all URLs are validated through the
checkSafeUrlfunction.
Testing
- [ ] Changes are covered with new/existing unit tests?
- [ ] Changes are covered with new/existing integration tests?
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Codecov Report
Merging #279 (163d2e6) into main (75c3796) will decrease coverage by
0.00%. The diff coverage is100.00%.
@@ Coverage Diff @@
## main #279 +/- ##
==========================================
- Coverage 92.66% 92.66% -0.01%
==========================================
Files 559 559
Lines 15751 15752 +1
Branches 4306 4307 +1
==========================================
Hits 14596 14596
- Misses 1074 1075 +1
Partials 81 81
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/link/internal.tsx | 95.00% <100.00%> (+0.08%) |
:arrow_up: |
| src/textarea/index.tsx | 97.67% <0.00%> (-2.33%) |
:arrow_down: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.