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(block): Corrects alignment of slotted icon #6883

Merged
merged 5 commits into from Apr 28, 2023

Conversation

macandcheese
Copy link
Contributor

@macandcheese macandcheese commented Apr 28, 2023

Related Issue: #6627

Summary

Adjust slotted icon container css to better align the icon container. Small misalignments due to icon may still occur but this should be better than before. Adds a handful of test-only stories to capture more Block states, and fixes some instance of an outdated prop used in demo pages.

cc @ashetland @SkyeSeitz - I think this was already correct in Figma, but FYI as this will likely require Chromatic approval.
cc @asangma @mitc7862 - FYI

Before:
Screen Shot 2023-04-28 at 10 29 41 AM

After:
Screen Shot 2023-04-28 at 10 29 32 AM

@macandcheese macandcheese requested a review from a team as a code owner April 28, 2023 17:37
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Apr 28, 2023
@macandcheese macandcheese added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Apr 28, 2023
Copy link
Member

@jcfranco jcfranco left a comment

Choose a reason for hiding this comment

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

🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳
🔳🔲🔳🔳🔳🔲🔳🔳🔲🔲🔳🔳🔲🔲🔲🔳🔳🔲🔲🔲🔳🔲🔲🔲🔲🔳🔲🔳
🔳🔲🔲🔳🔳🔲🔳🔲🔳🔳🔲🔳🔳🔲🔳🔳🔲🔳🔳🔳🔳🔲🔳🔳🔳🔳🔲🔳
🔳🔲🔳🔲🔳🔲🔳🔲🔳🔳🔲🔳🔳🔲🔳🔳🔲🔳🔳🔳🔳🔲🔲🔲🔳🔳🔲🔳
🔳🔲🔳🔳🔲🔲🔳🔲🔳🔳🔲🔳🔳🔲🔳🔳🔲🔳🔳🔳🔳🔲🔳🔳🔳🔳🔳🔳
🔳🔲🔳🔳🔳🔲🔳🔳🔲🔲🔳🔳🔲🔲🔲🔳🔳🔲🔲🔲🔳🔲🔲🔲🔲🔳🔲🔳
🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳🔳

@@ -43,7 +43,7 @@
<div class="child right-aligned-text">default (non-collapsible + no block-section)</div>

<div class="child">
<calcite-block heading="Fruit" summary="It's nature's candy"> </calcite-block>
<calcite-block heading="Fruit" description="It's nature's candy"> </calcite-block>
Copy link
Member

Choose a reason for hiding this comment

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

Nice! ✨:broom::sparkles:

@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Apr 28, 2023
@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Apr 28, 2023
@macandcheese macandcheese merged commit 8fec45e into master Apr 28, 2023
12 checks passed
@macandcheese macandcheese deleted the macandcheese/6627-block-icon-alignment branch April 28, 2023 21:20
@github-actions github-actions bot added this to the 2023 May Priorities milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants