Accessible emoiji picker

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2021-07-03 15:28:55 +02:00
parent 8f53134b5e
commit 4d3f4c5680
6 changed files with 117 additions and 8 deletions

View File

@@ -87,6 +87,22 @@
transform: translateY(-1px);
}
}
.emoji-picker-expand {
display: none;
}
&:focus-within {
.emoji-picker-expand {
display: inline-flex;
width: 0;
overflow: hidden;
&:focus-within {
width: unset;
}
}
}
}
.detailed-status__wrapper {

View File

@@ -80,7 +80,7 @@
transition: 0.1s;
z-index: 999;
&--visible {
&--visible, &--focused {
opacity: 1;
pointer-events: all;
}
@@ -99,7 +99,7 @@
transition: 0.1s;
}
&:hover {
&:hover, &:focus {
img {
width: 36px;
height: 36px;

View File

@@ -666,3 +666,21 @@ a.status-card.compact:hover {
border-radius: 4px;
}
}
.status__action-bar, .detailed-status__action-bar {
.emoji-picker-expand {
display: none;
}
&:focus-within {
.emoji-picker-expand {
display: inline-flex;
width: 0;
overflow: hidden;
&:focus-within {
width: unset;
}
}
}
}