File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed
static/app/views/automations/components Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -254,17 +254,18 @@ const IfThenWrapper = styled(Flex)`
254
254
padding: ${ p => p . theme . space . lg } ;
255
255
margin-top: ${ p => p . theme . space . md } ;
256
256
257
- .delete-condition-group {
258
- opacity: 0;
259
- }
260
- :hover .delete-condition-group {
261
- opacity: 1;
257
+ /* Only hide delete button when hover is supported */
258
+ @media (hover: hover) {
259
+ &:not(:hover):not(:focus-within) {
260
+ .delete-condition-group {
261
+ ${ p => p . theme . visuallyHidden }
262
+ }
263
+ }
262
264
}
263
265
` ;
264
266
265
267
const DeleteButton = styled ( Button ) `
266
268
position: absolute;
267
269
top: ${ p => p . theme . space . sm } ;
268
270
right: ${ p => p . theme . space . sm } ;
269
- opacity: 0;
270
271
` ;
Original file line number Diff line number Diff line change @@ -50,17 +50,18 @@ const RowContainer = styled('div')<{incompatible?: boolean}>`
50
50
min-height: 46px;
51
51
align-items: center;
52
52
53
- .delete-row {
54
- opacity: 0;
55
- }
56
- :hover .delete-row {
57
- opacity: 1;
53
+ /* Only hide delete button when hover is supported */
54
+ @media (hover: hover) {
55
+ &:not(:hover):not(:focus-within) {
56
+ .delete-row {
57
+ ${ p => p . theme . visuallyHidden }
58
+ }
59
+ }
58
60
}
59
61
` ;
60
62
61
63
const DeleteButton = styled ( Button ) `
62
64
position: absolute;
63
65
top: ${ space ( 0.75 ) } ;
64
66
right: ${ space ( 0.75 ) } ;
65
- opacity: 0;
66
67
` ;
You can’t perform that action at this time.
0 commit comments