Skip to content

Commit a8d0524

Browse files
fix: fix copy button not hidden after copy (#838)
1 parent bc115c6 commit a8d0524

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/EntityStatus/EntityStatus.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@
1515

1616
&__clipboard-button {
1717
display: flex;
18-
visibility: hidden;
1918
flex-shrink: 0;
2019

2120
margin-left: 8px;
2221

22+
opacity: 0;
2323
color: var(--g-color-text-secondary);
2424

25-
&_visible {
26-
visibility: visible;
25+
&_visible,
26+
&:focus-visible {
27+
opacity: 1;
2728
}
2829
}
2930

src/containers/App/App.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,9 @@ body,
119119
.data-table__row,
120120
.ydb-virtual-table__row,
121121
.ydb-tree-view__item {
122-
&:hover,
123-
&:focus-within {
122+
&:hover {
124123
& .clipboard-button {
125-
visibility: visible;
124+
opacity: 1;
126125
}
127126
}
128127
}

0 commit comments

Comments
 (0)