@@ -30,13 +30,13 @@ export class UUIButtonInlineCreateElement extends LitElement {
30
30
:host(:not([vertical])) {
31
31
height: 20px;
32
32
width: 100%;
33
- margin: -8px 0;
33
+ margin: -10px 0;
34
34
}
35
35
36
36
:host([vertical]) {
37
37
height: 100%;
38
38
width: 20px;
39
- margin: 0 -8px ;
39
+ margin: 0 -10px ;
40
40
}
41
41
42
42
#button-wrapper {
@@ -71,24 +71,26 @@ export class UUIButtonInlineCreateElement extends LitElement {
71
71
opacity: 1;
72
72
}
73
73
74
- /* :host([vertical]) #button-wrapper {
75
- height: 100%;
76
- width: auto;
77
-
78
- } */
74
+ :host(:focus) #button-wrapper:before,
75
+ :host(:focus-within) #button-wrapper:before,
76
+ :host(:hover) #button-wrapper:before {
77
+ animation: ${ UUIBlinkAnimationValue } ;
78
+ background-color: var(--uui-color-interactive-emphasis);
79
+ border-color: var(--uui-color-surface);
80
+ }
79
81
80
82
#button-wrapper:before {
81
83
content: '';
82
84
position: absolute;
83
85
right: 0;
84
86
left: 0;
85
87
height: 2px;
86
- background-color: var(--uui-color-selected) ;
87
- border-top: 1px solid var(--uui-color-surface) ;
88
- border-bottom: 1px solid var(--uui-color-surface) ;
88
+ background-color: transparent ;
89
+ border-top: 1px solid transparent ;
90
+ border-bottom: 1px solid transparent ;
89
91
border-radius: 2px;
90
92
pointer-events: none;
91
- animation: ${ UUIBlinkAnimationValue } ;
93
+ transition: background-color 720ms ease-out, border-color 240ms ;
92
94
}
93
95
94
96
:host(:not([vertical])) #button-wrapper:before {
@@ -101,13 +103,6 @@ export class UUIButtonInlineCreateElement extends LitElement {
101
103
width: 2px;
102
104
left: 50%;
103
105
transform: translateX(-50%);
104
- /* background: linear-gradient(
105
- 180deg,
106
- rgba(33, 82, 163, 0) 0%,
107
- rgba(33, 82, 163, 1) 30%,
108
- rgba(33, 82, 163, 1) 70%,
109
- rgba(33, 82, 163, 0) 100%
110
- ); */
111
106
}
112
107
113
108
:host(:not([vertical]):not(:hover)) #plus:not(:focus) {
@@ -129,10 +124,9 @@ export class UUIButtonInlineCreateElement extends LitElement {
129
124
height: 28px;
130
125
border-radius: 3em;
131
126
font-size: 14px;
132
- border: 2px solid var(--uui-color-selected );
133
- color: var(--uui-color-selected );
127
+ border: 2px solid var(--uui-color-interactive-emphasis );
128
+ color: var(--uui-color-interactive-emphasis );
134
129
background-color: var(--uui-color-surface);
135
- box-shadow: 0 0 0 2px var(--uui-color-surface);
136
130
137
131
opacity: 0;
138
132
transform: scale(0);
@@ -145,7 +139,8 @@ export class UUIButtonInlineCreateElement extends LitElement {
145
139
opacity: 1;
146
140
transform: scale(1);
147
141
transition: transform 240ms cubic-bezier(0.175, 0.885, 0.32, 1.275),
148
- opacity 80ms;
142
+ opacity 80ms, box-shadow 240ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
143
+ box-shadow: 0 0 0 2px var(--uui-color-surface);
149
144
}
150
145
151
146
:host(:not([vertical])) #plus {
@@ -159,7 +154,8 @@ export class UUIButtonInlineCreateElement extends LitElement {
159
154
160
155
#button-wrapper:focus #plus {
161
156
/* TODO: implement focus outline system */
162
- border: 2px solid #6ab4f0;
157
+ border: 2px solid var(--uui-color-focus);
158
+ color: var(--uui-color-focus);
163
159
}
164
160
165
161
#plus-icon {
0 commit comments