-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Advanced settings UI change to centralize save state #53693
Merged
mbondyra
merged 27 commits into
elastic:master
from
mbondyra:IS-27405_improve-advanced-settings-save
Feb 24, 2020
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
00fb9c0
feat: centralize advanced settings dirty state
mbondyra 7b53665
fix: types fix
mbondyra c63e077
Merge branch 'master' into IS-27405_improve-advanced-settings-save
mbondyra 16c5d8f
refactor: don't use lodash function
mbondyra 88b349b
fix: hidden settings saved
mbondyra eed6aaa
test: corrected for form
mbondyra 7d8d078
Merge branch 'master' into IS-27405_improve-advanced-settings-save
elasticmachine b9d1d18
Fixing bottom bar position based on NavDrawer and locked status
d6144a7
Removing `idAria` and updating snaps
d806bc4
test: mock localStorage
mbondyra a922733
Merge branch 'master' into IS-27405_improve-advanced-settings-save
mbondyra 2fd4de6
fix: fix tests
mbondyra 3f87057
feat: addressing accessibility review
mbondyra 2551a3e
Merge branch 'master' into IS-27405_improve-advanced-settings-save
mbondyra a6d4f3d
Update src/plugins/advanced_settings/public/management_app/components…
mbondyra 0c3e567
Merge branch 'master' into IS-27405_improve-advanced-settings-save
mbondyra 462577f
refactor: code review
mbondyra b657eb3
fix: accessibility
mbondyra 2ffa278
Merge commit '02efb01c481f9f24d8d707f06dfc68b2fb805001' into IS-27405…
mbondyra 3fae234
fix: accesssibility again
mbondyra 493d712
feat: mobile
mbondyra e5802f7
Merge commit '98aa1d2d4f974f72a9a5397b1b91f11509f6fb7a' into IS-27405…
mbondyra ad5834e
a11y: don't pass id not necesserilly
mbondyra 47b3d61
fix~: remove parenthesis
mbondyra d1a3e8b
Merge branch 'master' into IS-27405_improve-advanced-settings-save
elasticmachine 6cd2486
Merge branch 'master' into IS-27405_improve-advanced-settings-save
elasticmachine 917e74e
Merge branch 'master' into IS-27405_improve-advanced-settings-save
elasticmachine 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this doesn't work because of the way that EUI renders forms at the moment (I opened a bug for it elastic/eui#2888).
I tried a few different things and the thing that I thought worked best was moving this from the
renderTitle
function to therenderField
function.For each field, add an
aria-describedby="{uniqueID}"
. Then, in the render function, right after the{this.renderField(setting)}
line, you can put all this stuff with the sameuniqueId
on the<p>
.Can talk through it more tomorrow!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@myasonik I corrected the code according to your comments. That, however adds
aria-describedby
to every element, even the ones that don't have relative<p>
element. Is this ok?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria-describedby
should always point to a realid
that exists on the page.The contents can be empty though.
Does that make sense?