This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 2424// stylelint-disable selector-class-pattern
2525
2626@use ' @material/animation/functions' as animation-functions ;
27+ @use ' @material/elevation/mixins' as elevation-mixins ;
2728@use ' @material/feature-targeting/feature-targeting' ;
2829@use ' @material/rtl/rtl' as rtl ;
2930@use ' ./tooltip-theme' ;
@@ -40,6 +41,10 @@ $_min-height: 24px;
4041$_label-type-scale : caption ;
4142$_line-height : 16px ;
4243
44+ // Rich Tooltip variables
45+ $_rich_corner_radius : 8px ;
46+ $_rich_padding : 8px ;
47+
4348$enter-duration : 150ms ;
4449$exit-duration : 75ms ;
4550
@@ -79,6 +84,15 @@ $exit-duration: 75ms;
7984 @include feature-targeting .targets ($feat-structure ) {
8085 display : inline-flex ;
8186 }
87+
88+ & .mdc-tooltip--rich {
89+ @include elevation-mixins .elevation (2 , $query : $query );
90+ @include feature-targeting .targets ($feat-structure ) {
91+ display : inline-block ;
92+ border-radius : $_rich_corner_radius ;
93+ padding : $_rich_padding $_rich_padding ;
94+ }
95+ }
8296 }
8397
8498 .mdc-tooltip__surface {
Original file line number Diff line number Diff line change 2121 "@material/animation" : " ^8.0.0" ,
2222 "@material/base" : " ^8.0.0" ,
2323 "@material/dom" : " ^8.0.0" ,
24+ "@material/elevation" : " ^8.0.0" ,
2425 "@material/feature-targeting" : " ^8.0.0" ,
2526 "@material/rtl" : " ^8.0.0" ,
2627 "@material/shape" : " ^8.0.0" ,
You can’t perform that action at this time.
0 commit comments