Skip to content

Commit

Permalink
feat(tooltip): rich tooltip max-height is configurable via theme API.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 573900279
  • Loading branch information
sayris authored and copybara-github committed Oct 16, 2023
1 parent 127a44b commit d94629d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/mdc-tooltip/_rich-tooltip-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ $light-theme: (
action-pressed-state-layer-opacity: null,
container-color: null,
container-elevation: null,
container-max-height: null,
container-shadow-color: null,
container-shape: null,
container-surface-tint-layer-color: null,
Expand Down Expand Up @@ -145,6 +146,10 @@ $light-theme: (
)
);
}

@include tooltip-theme.rich-max-height(
map.get($theme, 'container-max-height')
);
}

@mixin _container-elevation($elevation-resolver, $theme) {
Expand Down

0 comments on commit d94629d

Please sign in to comment.