-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mwpw 162444 asset language #132
base: stage
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ export const partnerCardsStyles = css` | |
width: 100%; | ||
margin: 0 auto; | ||
display: grid; | ||
grid-template-columns: 204px auto; | ||
grid-template-columns: 269px auto; | ||
gap: 32px; | ||
} | ||
|
||
|
@@ -39,8 +39,8 @@ export const partnerCardsStyles = css` | |
.partner-cards-sidebar { | ||
display: flex; | ||
flex-direction: column; | ||
width: 204px; | ||
max-width: 204px; | ||
width: 269px; | ||
max-width: 269px; | ||
margin-right: 32px; | ||
padding: 8px 16px 16px; | ||
border-radius: 4px; | ||
|
@@ -840,6 +840,38 @@ export const partnerCardsStyles = css` | |
.all-filters-wrapper-mobile .all-filters-footer-clear-btn-mobile:focus { | ||
border-color: ${blueColor}; | ||
} | ||
|
||
.filter-info { | ||
display: flex; | ||
margin: 0 15px 5px 0; | ||
} | ||
|
||
.info-icon { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SonjaPopovic - I guess there's no spectrum web component that we can use out of the box for this? |
||
height: 18px; | ||
width: 18px; | ||
background-repeat: no-repeat; | ||
background-position: 50% 50%; | ||
background-size: cover; | ||
margin: 5px 10px 0 0; | ||
flex-shrink: 0; | ||
} | ||
.filter-info-text { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SonjaPopovic the filter info text font looks a little wrong to me: Can we just set a font size and line height? We could make use of the spectrum CSS variables provided:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like there's somehow an issue for me when testing branches with the adobe clean font loading. Nevertheless, I would avoid redefining the font family in the info text and simply inherit it. The default should be:
|
||
font-family: inherit; | ||
font-size: var(--type-body-xs-size); | ||
line-height: 17px; | ||
} | ||
.filter-wrapper-mobile .filter-info { | ||
display: none; | ||
} | ||
.filter-wrapper-mobile.expanded .filter-info { | ||
display: flex; | ||
width: 100%; | ||
margin: 0; | ||
padding: 10px 20px; | ||
} | ||
.filter-wrapper-mobile.expanded .info-icon { | ||
margin-top: 0; | ||
} | ||
`; | ||
|
||
export const partnerCardsLoadMoreStyles = css` | ||
|
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.
@SonjaPopovic - regarding the below requirement from the ticket, I think we'll have to update that in the backend anyhow, so I don't think we will need this mapping from
asset-language
tolanguage
. I can simply change the key in the backend. Or do you need this for something else?pages should not show up in the filtered view, even if they match the selected language.
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.
We can also update in on backend, i prepared pr for filtering only assets https://git.corp.adobe.com/wcms/dx-partners-runtime/pull/104 , but didn't want to change key in the backend since was not sure will that have side effects since search api is used on other pages. On logos pages only assets are fetched anyway, and on gnav search there is no language filter so i guess it is ok. I will prepare pr as part of this ticket. Thanks
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.
it shouldn't have any side effects, I think the fewer mappings we keep the better