mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-30 10:49:48 +00:00
NavBarButton focus implemented
This commit is contained in:
parent
f56bedb351
commit
badcf77c4c
2 changed files with 5 additions and 4 deletions
|
|
@ -18,7 +18,7 @@ const NavBarButton = React.memo(({ className, icon, label, href, onClick }) => {
|
|||
}, [href, locationHash]);
|
||||
const inputType = typeof onClick === 'function' ? 'button' : 'link';
|
||||
return (
|
||||
<Input className={classnames(className, styles['button'], { 'active': active })} type={inputType} href={href} onClick={onClick}>
|
||||
<Input className={classnames(className, styles['button'], 'focusable-with-border', { 'active': active })} type={inputType} href={href} onClick={onClick}>
|
||||
<Icon className={styles['icon']} icon={icon} />
|
||||
<div className={styles['label']}>{label}</div>
|
||||
</Input>
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
display: inline-flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 0 1.4em;
|
||||
padding: 0 1.2em;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover, &:focus {
|
||||
&:hover {
|
||||
background-color: var(--color-backgrounddark20);
|
||||
}
|
||||
|
||||
|
|
@ -24,8 +24,9 @@
|
|||
flex: 1;
|
||||
height: 1.4em;
|
||||
line-height: 1.4em;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-transform: capitalize;
|
||||
color: var(--color-surfacelighter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue