Skip to content

Commit

Permalink
[default-layout] Fix focus state of name/logo element in Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajdobrucki authored and rexxars committed Oct 6, 2020
1 parent 9cb610a commit 700f0af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions packages/@sanity/default-layout/src/navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@
.brandingLink {
text-decoration: none;
color: inherit;
outline: none;
border-radius: var(--extra-small-padding);

display: block;

@nest &:focus {
background-color: color(var(--focus-color) a(20%));
outline: 0;
box-shadow: var(--input-box-shadow--focus);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Branding(props: Props) {
const logo = props.logo || BrandLogo

return (
<div className={styles.root} tabIndex={-1}>
<div className={styles.root}>
{logo && <div className={styles.brandLogoContainer}>{createElement(logo)}</div>}

{!logo && (
Expand Down

0 comments on commit 700f0af

Please sign in to comment.