[EuiTour] Convert to Emotion styling#6087
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |
jenkins test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |
| [data-popover-arrow='top'] { | ||
| &:before { | ||
| ${logicalCSS( | ||
| 'border-top-color', | ||
| backgroundColor(euiTheme.colors.lightestShade, colorMode) | ||
| )}; | ||
| } | ||
| } |
There was a problem hiding this comment.
[not a blocking comment, just noting something] I know this is just a translation from Sass so this is already happening in prod, but it looks like left/right arrows that are close to the colored footer also have incorrect arrow colors:
tbh not a huge deal and i'm not sure if there's a way of programmatically detecting this
There was a problem hiding this comment.
I remember not being able to account for this when writing the Sass styles originally, but maybe we can do some calculations now? I'll look.
There was a problem hiding this comment.
feel free to timebox / no worries if it's too much of a hassle, we can punt!
There was a problem hiding this comment.
I remember not being able to account for this when writing the Sass styles originally, but maybe we can do some calculations now? I'll look.
It would be great to support this. 👍🏽
There was a problem hiding this comment.
Haven't quite got this yet but don't want to hold up this PR any longer. I'll do a follow-up
cee-chen
left a comment
There was a problem hiding this comment.
Overall this looks great to me, I have a few nits and questions, but otherwise QA looks great, logical properties all look good, and I'm really digging how the Emotion styles were organized!
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |
elizabetdev
left a comment
There was a problem hiding this comment.
Thanks, @thompsongl!
Tested in Chrome, Safari, Edge, and Firefox. LGTM! 🎉
| [data-popover-arrow='top'] { | ||
| &:before { | ||
| ${logicalCSS( | ||
| 'border-top-color', | ||
| backgroundColor(euiTheme.colors.lightestShade, colorMode) | ||
| )}; | ||
| } | ||
| } |
There was a problem hiding this comment.
I remember not being able to account for this when writing the Sass styles originally, but maybe we can do some calculations now? I'll look.
It would be great to support this. 👍🏽
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
|
jenkins test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6087/ |

Summary
Like it says on the tin.
Also,
onPositionChangecallback toEuiPopoverfor getting arrow placementuseEuiTourbecause it incorrectly expectedonFinishto be part of each step configChecklist