sforkowany z mirror/soapbox
Styles, set focus to sidebar on open
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>strip-front-mentions
rodzic
916bf7a634
commit
4bc3a0c7dc
|
@ -141,6 +141,10 @@ class SidebarMenu extends ImmutablePureComponent {
|
|||
if (accountChanged || otherAccountsChanged) {
|
||||
this.fetchOwnAccounts();
|
||||
}
|
||||
|
||||
if (this.props.sidebarOpen && !prevProps.sidebarOpen) {
|
||||
document.querySelector('.sidebar-menu__close').focus();
|
||||
}
|
||||
}
|
||||
|
||||
renderAccount = account => {
|
||||
|
|
|
@ -202,7 +202,8 @@
|
|||
padding: 7px;
|
||||
opacity: 0.6;
|
||||
|
||||
&:hover {
|
||||
&:hover,
|
||||
&:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -173,7 +173,8 @@
|
|||
clear: both;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: var(--brand-color--faint);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -154,6 +154,11 @@
|
|||
justify-content: center;
|
||||
color: var(--primary-text-color--faint);
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: var(--primary-text-color);
|
||||
}
|
||||
|
||||
.svg-icon {
|
||||
margin-right: 7px;
|
||||
width: 22px;
|
||||
|
|
Ładowanie…
Reference in New Issue