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

feat(details): updated styling #2403

Merged
merged 4 commits into from
Jul 30, 2024
Merged

feat(details): updated styling #2403

merged 4 commits into from
Jul 30, 2024

Conversation

agliga
Copy link
Contributor

@agliga agliga commented Jul 29, 2024

Fixes #2036

  • This PR contains CSS changes
  • This PR does not contain CSS changes

Description

  • Updated details visual style
  • Fixed icon layout (for old icon it should still align)

Notes

  • Design wants width to be fixed to item. For now, I left it as is and have the width span the whole content of the button. This is in order to prevent possible layout shift if we have things on the left/right of it
    This is what it looks like if we remove width 100% (current not in this change)
Screenshot 2024-07-29 at 11 01 45 AM With width 100% Screenshot 2024-07-29 at 10 45 03 AM

Screenshots

Old icon (12px)
Screenshot 2024-07-29 at 10 56 11 AM
New Icon (16px)
Screenshot 2024-07-29 at 10 56 56 AM

Checklist

  • I verify the build is in a non-broken state

  • I verify all changes are within scope of the linked issue

  • I regenerated all CSS files under dist folder

  • I tested the UI in all supported browsers

  • I did a visual regression check of the components impacted by doing a Percy build and approved the build

  • I tested the UI in dark mode and RTL mode

  • I added/updated/removed Storybook coverage as appropriate

@agliga agliga requested review from ianmcburnie and LuLaValva July 29, 2024 18:27
@agliga agliga self-assigned this Jul 29, 2024
Copy link

changeset-bot bot commented Jul 29, 2024

🦋 Changeset detected

Latest commit: d12df97

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ebay/skin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@agliga
Copy link
Contributor Author

agliga commented Jul 30, 2024

Removed with:100.
Only kept it for centered version (its needed otherwise it wont center it)
Also I have changed the inline-block to be inline flex. This properly centers the chevron and the text.

Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

Looks great!

Maybe there was some discussion to ditch the styling for states, but the issue currently has those styles with no comment about not using them. Shouldn't the component have those implemented?

image

@agliga
Copy link
Contributor Author

agliga commented Jul 30, 2024

Looks great!

Maybe there was some discussion to ditch the styling for states, but the issue currently has those styles with no comment about not using them. Shouldn't the component have those implemented?

image

I don't see these in the figma link which is why I didnt implement them.

@agliga
Copy link
Contributor Author

agliga commented Jul 30, 2024

@ArtBlue I updated the state layer. The only one that was not present in figma was disabled, so I left that one out.
Let me know if you think this is good.

@ianmcburnie
Copy link
Contributor

ianmcburnie commented Jul 30, 2024

Given that we are removing the 100% width on the button/summary, does this centered variant make sense anymore?

I would say that this modifier is no longer just centering the button text anymore, it is now centering and making the button fluid: https://github.com/eBay/skin/pull/2403/files#diff-df3ce4e1c4141c74932c4e28e5175bb81d45973c23a752a8ec55e5d7bd11d540R43

Screenshot 2024-07-30 at 10 15 21 AM

@agliga
Copy link
Contributor Author

agliga commented Jul 30, 2024

Given that we are removing the 100% width on the button/summary, does this centered variant make sense anymore?

I would say that this modifier is no longer just centering the button text anymore, it is now centering and making the button fluid: https://github.com/eBay/skin/pull/2403/files#diff-df3ce4e1c4141c74932c4e28e5175bb81d45973c23a752a8ec55e5d7bd11d540R43

Screenshot 2024-07-30 at 10 15 21 AM

Its not! I think design removed it. We can remove it from docs, but I kept it in for now until we get clarification.
However, changing this would be breaking.

Copy link
Contributor

@ArtBlue ArtBlue left a comment

Choose a reason for hiding this comment

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

LGTM!

@agliga , the only thing is that I think the component version should probably match that of the component in Figma. Not seeing that diff here.

@ArtBlue ArtBlue changed the title fix(details): updated spec feat(details): updated styling Jul 30, 2024
@ianmcburnie
Copy link
Contributor

ianmcburnie commented Jul 30, 2024

Its not! I think design removed it. We can remove it from docs, but I kept it in for now until we get clarification.
However, changing this would be breaking.

Ok. Let's remove from docs and add a deprecated comment in the code.

@agliga agliga merged commit a7757e5 into 18.1.0 Jul 30, 2024
2 checks passed
@agliga agliga deleted the details branch July 30, 2024 20:58
This was referenced Jul 30, 2024
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.

3 participants