Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5754/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5754/ |
|
Opening for review. Will likely write some tests if we feel good about the direction. Not sure if/how we want to document the functions. |
Can you attempt to update the |
Ah nice; I didn't remember that was there |
|
Added some shadow docs! |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5754/ |
- Added one `useEuiShadow` that accepts t-shirt sizes - Added `SHADOW_SIZE` and `_EuiShadowSizes` global types of t-shirt sizes - Simplified docs section to loop through t-shirt sizes - Consolidated `shadowOpacity` into `getShadowColor`
…tyles` component styles and added docs
…uiColorPaletteInnerBorder`
|
PR4U: thompsongl#16 |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5754/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5754/ |
chandlerprall
left a comment
There was a problem hiding this comment.
I really like how the methods break down, and I think it covers a lot of precedent-setting that we can follow moving forward. Had a couple thoughts on the docs side of things, but the EUI code LGTM.
| * @param content | ||
| * @returns string | ||
| */ | ||
| export const euiCanAnimate = (content: string) => ` |
There was a problem hiding this comment.
Have you explored Emotion's InterpolationPrimitive type and if it, a subset, or this string is the right choice here and in other utility methods?
export type InterpolationPrimitive =
| null
| undefined
| boolean
| number
| string
| ComponentSelector
| Keyframes
| SerializedStyles
| CSSObject
There was a problem hiding this comment.
I hadn't seen this but it might make sense in some cases. We'd need add @emotion/serialize as a dependency to use it, so I'm ok going with the more restrictive string here for now.
Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5754/ |
Summary
Convert Sass mixins to JS factories and React hooks
helperandshadowmixins and hooksglobal_stylingthemedirectorycreateStyleHookFromMixincolorModegracefullyDiscuss:
euiThemeThinguseEuiThemeThingChecklist