-
Notifications
You must be signed in to change notification settings - Fork 829
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added internationalized screen reader helpers to EuiMark. (#5739)
* Added internationalized screen reader helpers to EuiMark. * Added SR-only text using EuiScreenReaderOnly. * Adding i18n to the highlight start and end. * Updating tests and declaring React Fragment. * Adding a new changelog entry for 3072. * Uploading the correct CHANGELOG file number. * Update upcoming_changelogs/5739.md Co-authored-by: Greg Thompson <thompson.glowe@gmail.com> * Refactoring to use CSS-in-JS * Refactoring to toggle helper text. * Extending euiMarkStyles method locally instead of globally. * Adding hasScreenReaderHelpText prop to Highlight component. * Simplifying the highlight type checks and adding Emotion output to unit test. * Picking EuiMark prop for cleaner EuiHighlight typing. * Updated EuiMark test to include Emotion output in snapshot. * Fixing lint errors. * Renaming a test for better context. Co-authored-by: Greg Thompson <thompson.glowe@gmail.com>
- Loading branch information
Showing
10 changed files
with
175 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
* Side Public License, v 1. | ||
*/ | ||
|
||
export type { EuiMarkProps } from './mark'; | ||
export { EuiMark } from './mark'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Added internationalized screen reader helpers to `EuiMark` |