-
Notifications
You must be signed in to change notification settings - Fork 870
[EuiScreenReaderOnly] Add clip property to fix scrolling bug
#5152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
39ba09e
Update .euiScreenReaderOnly to use clip
cee-chen fd69612
[PR feedback] Add comment with more context
cee-chen f27dc38
Fix screenReaderOnly CSS to only apply to check/radio inputs with labels
cee-chen 967886e
Clean up noLabel input CSS that was overriding previous screen reader…
cee-chen e26b2e4
Add changelog entry
cee-chen 5833109
[PR feedback] Docs & Comments & Updates styles for EuiScreenReaderOnly
cchaos 2296657
Merge branch 'master' into screen-reader-only-clip
cee-chen 06282da
Remove button/position relative documentation/example in favor of #5168
cee-chen bd1cb16
Add 2nd changelog entry
constancecchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,51 +1,16 @@ | ||
| import React from 'react'; | ||
|
|
||
| import { EuiScreenReaderOnly } from '../../../../src/components/accessibility/screen_reader'; | ||
| import { EuiCallOut } from '../../../../src/components/call_out'; | ||
| import { EuiText } from '../../../../src/components/text'; | ||
| import { EuiTitle } from '../../../../src/components/title'; | ||
| import { EuiLink } from '../../../../src/components/link'; | ||
| import { EuiScreenReaderOnly, EuiText } from '../../../../src/components'; | ||
|
|
||
| export default () => ( | ||
| <div> | ||
| <EuiText> | ||
| <EuiTitle size="xxs"> | ||
| <h3>Visually hide content</h3> | ||
| </EuiTitle> | ||
| <EuiText> | ||
| <p>This is the first paragraph. It is visible to all.</p> | ||
| <EuiScreenReaderOnly> | ||
| <p> | ||
| <em> | ||
| Use a screenreader to verify that there is a second paragraph in this | ||
| example: | ||
| </em> | ||
| This is the second paragraph. It is hidden for sighted users but visible | ||
| to screen readers. | ||
| </p> | ||
| <p>This is the first paragraph. It is visible to all.</p> | ||
| <EuiScreenReaderOnly> | ||
| <p> | ||
| This is the second paragraph. It is hidden for sighted users but | ||
| visible to screen readers. | ||
| </p> | ||
| </EuiScreenReaderOnly> | ||
| <p>This is the third paragraph. It is visible to all.</p> | ||
| <EuiTitle size="xxs"> | ||
| <h4>Show on focus</h4> | ||
| </EuiTitle> | ||
| <p> | ||
| <em> | ||
| Tab through this section with your keyboard to display a ‘Skip | ||
| navigation’ link: | ||
| </em> | ||
| </p> | ||
| <p> | ||
| This link is visible to all on focus:{' '} | ||
| <EuiScreenReaderOnly showOnFocus> | ||
| <EuiLink href="#">Skip navigation</EuiLink> | ||
| </EuiScreenReaderOnly> | ||
| </p> | ||
| <EuiCallOut | ||
| size="s" | ||
| title="For a fully styled ‘Skip to main content’ solution, see the EuiSkipLink component in the next section." | ||
| iconType="iInCircle" | ||
| /> | ||
| </EuiText> | ||
| </div> | ||
| </EuiScreenReaderOnly> | ||
| <p>This is the third paragraph. It is visible to all.</p> | ||
| </EuiText> | ||
| ); |
This file contains hidden or 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,18 @@ | ||
| import React from 'react'; | ||
|
|
||
| import { | ||
| EuiScreenReaderOnly, | ||
| EuiText, | ||
| EuiLink, | ||
| } from '../../../../src/components'; | ||
|
|
||
| export default () => ( | ||
| <EuiText> | ||
| <p> | ||
| This link is visible to all on focus:{' '} | ||
| <EuiScreenReaderOnly showOnFocus> | ||
| <EuiLink href="#/utilities/accessibility">Link text</EuiLink> | ||
| </EuiScreenReaderOnly> | ||
| </p> | ||
| </EuiText> | ||
| ); |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.