-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current logo CSS / markup is outdated. This refactors the logo component so that it displays the image, and / or the library name / place accordingly. This also moves css for the logo away from "Header", as the logo is used elsewhere that the header as well. Additionally the story has been updated, and any component using the <logo/> component has has its' props updated in accordance with the changes. This also introduces an aria-label for the logo, which was requested in a seperate ticket: DDFFORM-750 DDFFORM-696
- Loading branch information
1 parent
926b9b9
commit ff724e8
Showing
6 changed files
with
61 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,39 @@ | ||
.logo { | ||
text-decoration: none; | ||
height: 100%; | ||
width: auto; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
img { | ||
display: none; | ||
|
||
height: 100px; | ||
width: auto; | ||
|
||
@include media-query__small { | ||
display: block; | ||
} | ||
} | ||
} | ||
|
||
.logo-fallback { | ||
.logo__description { | ||
@include typography($typo__body-small); | ||
} | ||
|
||
.logo-fallback__text-name { | ||
.logo__library-name { | ||
font-weight: 700; | ||
} | ||
|
||
.logo-fallback__text-libraries { | ||
font-weight: 300; | ||
.logo__description--has-image { | ||
@include media-query__small { | ||
display: none; | ||
} | ||
} | ||
|
||
.logo-fallback--has-image { | ||
@include media-query__small { | ||
.has-burger-menu .header__menu-navigation-mobile .logo { | ||
img { | ||
display: none; | ||
} | ||
.logo__description--has-image { | ||
display: block; | ||
} | ||
} |