Skip to content
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

[#1326] Fix phonenumber, email and url in product location cards #574

Merged

Conversation

vaszig
Copy link
Contributor

@vaszig vaszig commented Apr 5, 2023

Copy link
Contributor

@jiromaykin jiromaykin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know it needs to be a string - I see one strange thing: there is a little bit of space before the last link, so (probably) the link-list inside leaflets need to have a margin-left set to zero:

Screenshot 2023-04-06 at 09 49 42

@vaszig
Copy link
Contributor Author

vaszig commented Apr 6, 2023

@jiromaykin I hope I did this in the right way! I added this rule for the product location cards as well.

image

.link + .link {
.link
+ .link
:not(.card__body--flex > a > span, .leaflet-content-details > a > span) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems like the linter broke off the ":not" selector so it doesn't work anymore; also this ":not" selector is a bit dangerous to use if it's just 1 or 2 exceptions; so better to correct the original style, which was faulty and not specific enough, because it dealt with the wrong exception (not your blame :-D ).
The style for the numbers in the main Navigation here should onl be:
.primary-navigation { &__list-item .link.link--secondary { margin-left: var(--spacing-small); } }
declared outside of the ".link" curly braces.
This way all the other links everywhere will not be affected.

@vaszig vaszig requested a review from jiromaykin April 7, 2023 06:59
@alextreme alextreme merged commit 933bd24 into develop Apr 12, 2023
@alextreme alextreme deleted the fix/1326-phonenumber-and-email-in-product-detail-dont-work branch April 12, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants