Skip to content

PR7: feat: component SCSS enhancements for v9 theme support#1701

Open
anirudha wants to merge 2 commits intoopensearch-project:mainfrom
anirudha:v9-upstream/pr-7-component-scss-enhancements
Open

PR7: feat: component SCSS enhancements for v9 theme support#1701
anirudha wants to merge 2 commits intoopensearch-project:mainfrom
anirudha:v9-upstream/pr-7-component-scss-enhancements

Conversation

@anirudha
Copy link
Copy Markdown

@anirudha anirudha commented Feb 8, 2026

Enhance component SCSS files to consume new v9 theme variables while maintaining backward compatibility with existing themes (oui, oui-next).

Components updated:

  • side_nav: Major rework with configurable border radius, hover/active states, selected accent bar, and branch line styling
  • toast: Modern v9 styling with accent bar, close button hover effects, and configurable animations with reduced motion support
  • datagrid: Border radius, shadow, and hover state enhancements
  • badge: Icon spacing with gap, hover transform effects
  • form_control_layout: Border radius management for grouped form controls with proper clipping for nested layouts
  • list_group: Variable updates
  • button_group: Minor fix
  • charts theme: Minor fix

All changes use @if variable-exists() guards to conditionally apply v9 styling only when v9 theme variables are present, ensuring zero impact on existing themes.

PR 7: Component SCSS Enhancements (~10 files)

Scope: Larger component SCSS changes that consume the new variables from PR 3 and PR 6 — primarily side_nav, toast, datagrid, badge, and form_control_layout.

Files included:

  • src/components/side_nav/_side_nav_item.scss (major rework)
  • src/components/toast/_toast.scss (major rework)
  • src/components/toast/_global_toast_list.scss (enhancements)
  • src/components/datagrid/_data_grid.scss (enhancements)
  • src/components/datagrid/_data_grid_data_row.scss (enhancements)
  • src/components/datagrid/_data_grid_header_row.scss (enhancements)
  • src/components/badge/_badge.scss (enhancements)
  • src/components/badge/beta_badge/_beta_badge.scss
  • src/components/badge/notification_badge/_notification_badge.scss
  • src/components/form/form_control_layout/_form_control_layout.scss (major additions)
  • src/components/list_group/_variables.scss
  • src/components/button/button_group/_button_group_button.scss
  • src/themes/charts/theme.scss (minor fix)

Testing: yarn test-unit side_nav toast datagrid badge form_control_layout for snapshot updates, yarn lint, full yarn test-unit for regression check

Enhance component SCSS files to consume new v9 theme variables while
maintaining backward compatibility with existing themes (oui, oui-next).

Components updated:
- side_nav: Major rework with configurable border radius, hover/active
  states, selected accent bar, and branch line styling
- toast: Modern v9 styling with accent bar, close button hover effects,
  and configurable animations with reduced motion support
- datagrid: Border radius, shadow, and hover state enhancements
- badge: Icon spacing with gap, hover transform effects
- form_control_layout: Border radius management for grouped form controls
  with proper clipping for nested layouts
- list_group: Variable updates
- button_group: Minor fix
- charts theme: Minor fix

All changes use @if variable-exists() guards to conditionally apply
v9 styling only when v9 theme variables are present, ensuring zero
impact on existing themes.

Signed-off-by: Anirudha Jadhav <anirudha@nyu.edu>
Signed-off-by: Anirudha (Ani) Jadhav <anirudha@nyu.edu>
Signed-off-by: Anirudha (Ani) Jadhav <anirudha@nyu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant