Skip to content

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
@artemmufazalov artemmufazalov requested a review from Raubzeug May 22, 2024 14:29
.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
@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.

3 participants