Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix copy button not hidden after copy #838

Merged
merged 2 commits into from
May 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/containers/App/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ body,
.data-table__row,
.ydb-virtual-table__row,
.ydb-tree-view__item {
&:hover,
&:focus-within {
&:hover {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add focus-visible here, to make the button visible if iterating with keyboard.

Copy link
Member Author

@artemmufazalov artemmufazalov May 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elements with visibility:hidden cannot be selected with tab, so it doesn't have any effect

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100%! What do you think if we hide them with opacity=0?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opacity=0 works just fine, updated PR

& .clipboard-button {
visibility: visible;
}
Expand Down
Loading