-
Notifications
You must be signed in to change notification settings - Fork 839
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
[EuiTour] Style and a11y fixes #5225
Conversation
And instead maps directly to `CSSProperties[‘minWidth’]` and applies it directly to `panelStyle`. Also adds `maxWidth` option.
Preview documentation changes for this PR: https://eui.elastic.co/pr_5225/ |
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.
LGTM! 🎉
+1 for making the subtitle optional. Tested locally in Chrome, Safari, Edge, and Firefox.
All the tests snapshots don't look good to me. Even old ones like EuiTourStep can be closed
. I added some suggestions to fix the new tests that you added but I'm not a specialist. So maybe @thompsongl can take a look.
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.
Thank you @cchaos! One question and one suggested change.
Preview documentation changes for this PR: https://eui.elastic.co/pr_5225/ |
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.
👍 LGTM!
Closes #5112 and closes #4843
Made
subtitle
optionalI ran into this where I wanted to use the EuiTour component more to indicate to users changes in the UI, so it wasn't more than a single step. Requiring two titles and body content was quite excessive. So I just made
subtitle
optional.Fixed the
footer
background from extending beyond the popover boundsBefore
After
🔔 [Breaking] Changed how
minWidth
was applied and addedmaxWidth
Before, it was accepting a boolean, number or string and doing some className workarounds for the default of
true
. I noticed that this wasn't actually working (the default minWidth class was never getting applied) and so I just changed the type toCSSProperties['minWidth']
set the default to300
and passed it along topanelStyle
.I also then added a similar thing for
maxWidth
.Lowered the heading levels
They started at
<h1>
, but as per the guidance in #4843 , they should start ath2
.Checklist