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

Conversation

artemmufazalov
Copy link
Member

Copy button didn't hide after copy. Made it be shown only on hover

Test stand: https://nda.ya.ru/t/01pCgQBZ763DPX

@artemmufazalov artemmufazalov marked this pull request as ready for review May 22, 2024 14:29
@@ -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

@artemmufazalov artemmufazalov merged commit a8d0524 into main May 23, 2024
4 checks passed
@artemmufazalov artemmufazalov deleted the fix-copy-button-not-hidden branch May 23, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants