-
Notifications
You must be signed in to change notification settings - Fork 78
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(icon-switch): design updates #2819
Conversation
✔️ Deploy Preview for ai-apps-pal-angular ready! 🔨 Explore the source changes: 3073310 🔍 Inspect the deploy log: https://app.netlify.com/sites/ai-apps-pal-angular/deploys/6148b8ea20897200070dc341 😎 Browse the preview: https://deploy-preview-2819--ai-apps-pal-angular.netlify.app |
❌ Deploy Preview for carbon-addons-iot-react failed. 🔨 Explore the source changes: 3073310 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-addons-iot-react/deploys/6148b8ea4dc35a0008fa881f |
When I select the different buttons the icons inside move slightly. Kevin: Bjorn: if not, perhaps the outmost border around all the buttons can be on a container instead for on the buttons? |
The corners look a bit weird here in the dark button. Same story and setup, possibly related, the selection also looks strange: |
@bjornalm Should all be covered now. |
Are the latest changes in the preview deployment? I'm still seeing some strange things. Selection in RTL still looks off: The selection is only shown on top and bottom Perhaps we can look at how Carbon solved it for the content switcher? In a smaller container/window it looks like our iconSwitch |
Ugh. This design more complicated than it should be. fixed those issues. just waiting for them to push and deploy. |
@kevinsperrine Doesn't the spec call for rounded borders even when focused? |
Yeah, that was part of the problem. I had accidentally used 1px radius instead of the 0.25rem radius, so that's why it looked funky. |
This reverts commit a8c7c95.
This is looking much better! One last small thing is that the divider is still showing between a selected or hovered button a normal state button. It is really nitty gritty but if we want this component to be pixel perfect we should probably address it. The divider makes the line look a bit "fuzzy": and if we disable the component it becomes more visible and on both sides: |
Are we done yet? 😉 https://deploy-preview-2819--carbon-addons-iot-react.netlify.app/?path=/story/1-watson-iot-iconswitch--example-used-in-content-switcher |
Hehe, I have actually found more stuff, but I won't torture you with that. Nothing that will break a build. |
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.
Great work, you have earned a pixel-perfect badge!
display: none; | ||
} | ||
|
||
// hide the divider beside it on hover to prevent "fuzziness" of the hover state |
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.
hehe
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 are so many random little rules in there, I figured it good to label some of them.
@davidicus This one is ready to merge now, but coveralls is down, so we'll either need to wait for that or force merge. https://status.coveralls.io/ |
Closes #1536
Summary
Icon content switcher - Style.pdf
Change List (commits, features, bugs, etc)
Acceptance Test (how to verify the PR)
Regression Test (how to make sure this PR doesn't break old functionality)
Things to look for during review
iot
orbx
class prefix is using the prefix variabledata-testid
attribute. New test ids should have test written to ensure they are not changed or removed.