-
Notifications
You must be signed in to change notification settings - Fork 153
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(Radio): update component visually to match latest Figma #4372
Conversation
Storybook staging is available at https://kiwicom-orbit-rcsl-update-radio-visually.surge.sh |
Size Change: +8 B (0%) Total Size: 442 kB
ℹ️ View Unchanged
|
Deploying orbit with Cloudflare Pages
|
We need to update this picture as well. |
Could you elaborate on this? I think adding the Figma link in the PR description would help as well. |
It's in the Jira ticket so didn't think it'd be necessary to add the info here as well. (Actually, do you know why the Jira ticket wasn't picked up?) |
I ran the CI job to update snapshots but it seems to be taking a long time. |
Basically, the default border should be 1px-wide and only in some other cases it is 2px-wide. |
@@ -64,18 +64,21 @@ const Radio = React.forwardRef<HTMLInputElement, Props>((props, ref) => { | |||
"flex flex-none items-center justify-center", | |||
"size-icon-medium rounded-full", | |||
"duration-fast scale-100 transition-all ease-in-out", | |||
"lm:border border-[2px] border-solid", | |||
"lm:border border-solid", | |||
checked ? "border-[2px]" : "border-[1px]", |
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.
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.
Well spotted. There does not seem to be a responsive difference now, so I have adjusted the classes. I have also used the native border
and border-2
tailwind classes, avoiding custom ones 🙂
"Resolves" vs "Closes" perhaps? |
How is this related to snapshots? I meant this image in orbit.kiwi https://orbit.kiwi/static/fdcbdae8f39964dc436131a8c0d06128/0d390/160%253A1219.png |
18eeef9
to
c29ad91
Compare
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.
Leftover from other PR, updated here for convenience
ec626fd
to
6260a98
Compare
6260a98
to
23532b8
Compare
This still applies, I believe is the only thing left. |
The task was to only update the 'selected' state (both in 'normal' and 'disabled' states), but I noticed additional inconsistencies between Figma and the current state. Resolves FEPLT-2012
23532b8
to
7f6b105
Compare
7f6b105
to
2c5261a
Compare
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.
The task was to only update the 'selected' state (both in 'normal' and 'disabled' states), but I noticed additional inconsistencies between Figma and the current state.
Resolves FEPLT-2012
This Pull Request meets the following criteria:
For new components:
d.ts
files and are exported inindex.d.ts