-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(site-header): Using picture, keeping data structure unchanged - FRONT-3882 #2810
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coulnd't we take advantage of the picture sources to group the mobile and desktop logo in the same tag?
Fascinating, i did this on my own and then i read your comment.. :) |
media="(min-width: 996px)" | ||
srcset="/standard-version/positive/logo-eu--en.svg" | ||
/> | ||
<source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this second source is not needed. By default it will take the image in the img tag (mobile) and switch to desktop
@@ -78,16 +78,12 @@ $_search-width-xl: 31.5rem; | |||
flex-grow: 1; | |||
} | |||
|
|||
.ecl-site-header__logo-image-mobile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we remove the previous css class definition, that would be a breaking change
So we should either keep them (deprecated) or flag the pr as breaking
Use picture tag to handle logo
Note: for EU, the change of logo between mobile and desktop is now handled with the picture source