Styles, set focus to sidebar on open
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
916bf7a634
commit
4bc3a0c7dc
4 changed files with 13 additions and 2 deletions
|
@ -141,6 +141,10 @@ class SidebarMenu extends ImmutablePureComponent {
|
||||||
if (accountChanged || otherAccountsChanged) {
|
if (accountChanged || otherAccountsChanged) {
|
||||||
this.fetchOwnAccounts();
|
this.fetchOwnAccounts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.props.sidebarOpen && !prevProps.sidebarOpen) {
|
||||||
|
document.querySelector('.sidebar-menu__close').focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderAccount = account => {
|
renderAccount = account => {
|
||||||
|
|
|
@ -202,7 +202,8 @@
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -173,7 +173,8 @@
|
||||||
clear: both;
|
clear: both;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover,
|
||||||
|
&:focus {
|
||||||
background: var(--brand-color--faint);
|
background: var(--brand-color--faint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -154,6 +154,11 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: var(--primary-text-color--faint);
|
color: var(--primary-text-color--faint);
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: var(--primary-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
.svg-icon {
|
.svg-icon {
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
|
|
Loading…
Reference in a new issue