PR4: feat: add v9 elevation system — shadow tokens, CSS vars, mixins, useE…#1698
Open
anirudha wants to merge 2 commits intoopensearch-project:mainfrom
Open
PR4: feat: add v9 elevation system — shadow tokens, CSS vars, mixins, useE…#1698anirudha wants to merge 2 commits intoopensearch-project:mainfrom
anirudha wants to merge 2 commits intoopensearch-project:mainfrom
Conversation
…levation hook, and docs Add the complete v9 elevation system: - Shadow level SASS variables ($ouiShadow1-6) with theme-aware opacity - ouiElevation, ouiLocalElevation, ouiElevatedSurface SASS mixins - CSS custom properties for elevated surfaces (--oui-background-elevated, --oui-border-elevated) - Dark theme shadow overrides with glow ring and elevated surface colors - Panel elevation variables - useElevation React hook with OuiElevationProvider for dynamic z-index management - Unit tests for useElevation hook (6 tests) - Elevation documentation pages with shadow, dark theme, local elevation, and hook examples - Route registration for elevation docs Signed-off-by: Anirudha Jadhav <anirudha.jadhav@gmail.com> Signed-off-by: Anirudha (Ani) Jadhav <anirudha@nyu.edu>
Signed-off-by: Anirudha (Ani) Jadhav <anirudha@nyu.edu>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…levation hook, and docs
PR Plan : #1695
Add the complete v9 elevation system:
Scope: The complete elevation feature — shadow tokens, mixins, CSS custom properties,
useElevationhook, and elevation docs page.Files included:
src/themes/v9/global_styling/variables/_shadows.scss(shadow level tokens)src/themes/v9/global_styling/variables/_panel.scss(panel elevation vars)src/themes/v9/global_styling/mixins/_shadow.scss(ouiElevation, ouiLocalElevation, ouiElevatedSurface mixins)src/themes/v9/global_styling/css_variables/_elevation.scss(CSS custom properties)src/themes/v9/global_styling/css_variables/_index.scss(import)src/themes/v9/v9_colors_dark.scss(shadow opacity + elevated surface overrides — partial changes)src/services/elevation/(all 5 files: context, provider, hook, tests, index)src/services/index.ts(export additions)src-docs/src/views/elevation/(all 5 demo files + example definition)Testing:
yarn test-unit elevationfor hook tests,yarn lintfor SASS, visual verification of elevation docs page