File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
src/components/textarea/themes/shared Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,46 @@ $border-size: rem(1px);
7474}
7575
7676
77+ [part ~= ' container' ] {
78+ position : relative ;
79+ background : var-get ($theme , ' border-background' );
80+ align-items : stretch ;
81+ overflow : hidden ;
82+ border-radius : var-get ($theme , ' border-border-radius' );
83+
84+ & ::before {
85+ content : ' ' ;
86+ position : absolute ;
87+ inset : 0 ;
88+ width : 100% ;
89+ height : 100% ;
90+ box-shadow : inset 0 0 0 $border-size var-get ($theme , ' border-color' );
91+ border-radius : var-get ($theme , ' border-border-radius' );
92+ user-select : none ;
93+ pointer-events : none ;
94+ z-index : 1 ;
95+ }
96+ }
97+
98+
99+ :host (:hover ) {
100+ [part ~= ' container' ] {
101+ & ::before {
102+ box-shadow : inset 0 0 0 $border-size var-get ($theme , ' hover-border-color' );
103+ }
104+ }
105+ }
106+
107+ :host (:focus-within ) {
108+ [part ~= ' container' ] {
109+ & ::before {
110+ box-shadow : 0 0 0 $border-size var-get ($theme , ' focused-border-color' ),
111+ inset 0 0 0 calc ($border-size + #{rem (1px )} ) var-get ($theme , ' focused-border-color' );
112+ }
113+ }
114+ }
115+
116+
77117:host ([invalid ]) {
78118 [part ~= ' label' ] {
79119 color : var-get ($theme , ' idle-text-color' );
You can’t perform that action at this time.
0 commit comments