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

fix: css fixes for tag #626

Merged
merged 4 commits into from
Apr 4, 2019
Merged

fix: css fixes for tag #626

merged 4 commits into from
Apr 4, 2019

Conversation

montezume
Copy link
Contributor

@montezume montezume commented Apr 2, 2019

Summary

While working on implementing design tokens in the Tag component, I noticed some style weirdness.

Design has provided the following image

55416196-a1c02b00-556e-11e9-82d4-4e33d6f111e5

I have made the changes to make the Tag follow these styles.

@montezume montezume requested review from emmenko and tdeekens April 2, 2019 13:01
@montezume montezume self-assigned this Apr 2, 2019
@montezume montezume added the 🐛 Type: Bug Something isn't working label Apr 2, 2019
Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Thanks. I remember the requirement back then being that there isn't a right hand border (in case that changed). In any case I don't mind. Thanks!

@montezume
Copy link
Contributor Author

@tdeekens you're right, I jumped the gun on the right hand border thing. I'll update the PR gifs

@mariabarrena
Copy link
Contributor

Besides confirming that design team agrees with fixing the wrong border-radius when the tag is removeable, @montezume and I have spoken about improving the hover on the removable part:

Right now, the tags present two different type of hover effects into the same component: one for the left side to be redirected to somewhere else and one on the right side to remove the tag. It seems logical that, because one is a "link" and the other one is an action, they don't look the same and the take the hover effects from the buttons and the inputs. However the current hover to remove the tag presents several problems:
• The dark grey makes the black icon barely visible
• The shadow of that area overlaps the select input when we are talking about multiselect cases
• We have actions in the MC that are not triggered by a button: toggles, changing views from basic to advance mode on discounts and PIM search or set default address functionality are examples of that.

Screen Shot 2019-04-02 at 15 45 14

What was proposed is what you can see in the image: a "lightweight" hover effect. This would solve all the things mentioned above and looks way cleaner inside the multiselect inputs. The icon is also changed from black to orange on hover to make the hover a bit more visible. Again, in multiselect inputs, the border of the tags and the border of the select input are too close to see clearly the hover effect without changing the icon color. That would also solve the problem on what would the hover effect be on warning mode. A mode that, by the way, we are not using in the MC at all right now.

Design team is aware of it as well and agrees, but in somebody finds reasons on why this is a bad idea or have a better solution, we can discuss it. If we make these changes, please assign the UI review to @Shecki.

@montezume montezume added the 👨‍🎨 Status: UI/UX Review Requires review from design team label Apr 3, 2019
@montezume
Copy link
Contributor Author

montezume commented Apr 3, 2019

I made those changes illustrated by Maria, and the deployed branch can be see here

@montezume montezume requested a review from Shecki April 3, 2019 09:13
Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

Code looks good to me. Cheers.

Copy link

@Shecki Shecki left a comment

Choose a reason for hiding this comment

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

Works 👍 Thanks!

@montezume montezume merged commit 4cf0219 into master Apr 4, 2019
@montezume montezume deleted the ml-tag-fixes branch April 4, 2019 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👨‍🎨 Status: UI/UX Review Requires review from design team 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants