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(accordion): header spacing and disabled panel content color #1168

Merged
merged 14 commits into from
Jan 31, 2024

Conversation

mivaylo
Copy link
Contributor

@mivaylo mivaylo commented Jan 26, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • If applicable, have a visual design approval

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: CDE-1603

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This PR introduces changes in the API (removed obsolete custom properties) of the accordion / stepper and the appearance of the stepper.

There are spacing differences (hence it was marked as breaking change) and color differences. Previous version was not following figma specs or was not well defined, so this is marked as a "fix".

Removed obsolete custom property is:
--clr-accordion-header-button-padding

Spacing changes are:

-we used to have stepper header panel padding set to 18px on top and bottom, and the overall height of the header panel was calculated to 56.4px; overall height is calculated to exactly 56px;
-when a step is completed header panel used to have bigger height (60px) because of the size of the complete icon, now it stays to 56px on complete/error etc;
-gap between header panel container children was changed to 24px to reflect figma spec;
-there was smaller padding-left of the header panel container and some margin-left to the first child; changed to bigger padding-left and no margin for the child -> this helps with vertical alignments when there are two rows in smaller screens;
-top and bottom padding for header container was reduced from 18 to 8px for "breathing" space when there is a very long text or a small screen;

Preview link look in normal screen (padding right is 24 and padding left is 32 because of the box-shadow blue indicator which is 8px):

image

Smaller screen (big enough to have only one row though):

image

When we have two rows (they are now vertically aligned, the gap is 24px by design and that's why we have so big space between the rows):

image

When texts are long (there is this "breathing" space and texts are not fixed to the header container border:

image

BREAKING CHANGE: Changed spacing in stepper header

@mivaylo mivaylo marked this pull request as draft January 26, 2024 08:29
Copy link
Contributor

github-actions bot commented Jan 26, 2024

👋 @mivaylo,

  • 🙏 The Clarity team thanks you for opening a pull request
  • 🎉 The build for this PR has succeeded
  • 🔍 The PR is now ready for review
  • 🍿 In the meantime, view a preview of this PR
  • 🖐 You can always follow up here. If you're a VMware employee, you can also reach us on our internal #clarity-support Slack channel

Thank you,

🤖 Clarity Release Bot

Copy link
Contributor

This PR introduces visual changes: ae98060
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git ae98060af08127fa69059531f9440f7c44d12cc8
git cherry-pick ae98060af08127fa69059531f9440f7c44d12cc8
git push

Copy link
Contributor

This PR introduces visual changes: 45a4785
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git 45a47854db8812c1a6f25ddf544c57becf9d0216
git cherry-pick 45a47854db8812c1a6f25ddf544c57becf9d0216
git push

Copy link
Contributor

This PR introduces visual changes: 3697de0
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git 3697de0a9d8a4ee2703b2f36f809345efe185c81
git cherry-pick 3697de0a9d8a4ee2703b2f36f809345efe185c81
git push

@mivaylo mivaylo force-pushed the cde-1603-accordion-api-color-spacing-changes branch from 6cfe414 to 849a727 Compare January 26, 2024 16:15
Copy link
Contributor

This PR introduces visual changes: 3770e02
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git 3770e02482dbf1889d2c98501954abe0c7ac2eec
git cherry-pick 3770e02482dbf1889d2c98501954abe0c7ac2eec
git push

Copy link
Contributor

This PR introduces visual changes: b8c5fa0
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git b8c5fa002149bdc776651eba92296c20c8d05b3f
git cherry-pick b8c5fa002149bdc776651eba92296c20c8d05b3f
git push

Copy link
Contributor

This PR introduces visual changes: fda3cec
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git fda3cec713f5646b5f7fadbde6d0319cff35d477
git cherry-pick fda3cec713f5646b5f7fadbde6d0319cff35d477
git push

Copy link
Contributor

This PR introduces visual changes: 565645f
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git 565645f2fb759c093e3fe5966b633da06db5d46c
git cherry-pick 565645f2fb759c093e3fe5966b633da06db5d46c
git push

Copy link
Contributor

This PR introduces visual changes: cfb3ad4
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git cfb3ad45de965f6e4c3023297f7c683034e0bd56
git cherry-pick cfb3ad45de965f6e4c3023297f7c683034e0bd56
git push

Copy link
Contributor

This PR introduces visual changes: c5ea391
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git c5ea391939d1e8e43b1bf138496bb8b0422b806d
git cherry-pick c5ea391939d1e8e43b1bf138496bb8b0422b806d
git push

@mivaylo mivaylo requested a review from a team January 29, 2024 12:06
@mivaylo mivaylo marked this pull request as ready for review January 29, 2024 12:09
Copy link
Contributor

This PR introduces visual changes: bfb079c
If these changes are intended and correct, please cherry-pick the above commit to this PR.

git checkout cde-1603-accordion-api-color-spacing-changes
git fetch https://github.com/vmware-clarity/ng-clarity.git bfb079c9811ff5be19577fd110bf2b9d5f5947c9
git cherry-pick bfb079c9811ff5be19577fd110bf2b9d5f5947c9
git push

@mivaylo mivaylo changed the title fix(accordion): spacing and color of header panel fix(accordion): align header spacing and disabled panel content color to spec Jan 31, 2024
@mivaylo mivaylo changed the title fix(accordion): align header spacing and disabled panel content color to spec fix(accordion): align header spacing and disabled panel content color Jan 31, 2024
@mivaylo mivaylo changed the title fix(accordion): align header spacing and disabled panel content color fix(accordion): header spacing and disabled panel content color Jan 31, 2024
@mivaylo mivaylo merged commit eac8a0d into next Jan 31, 2024
5 checks passed
@mivaylo mivaylo deleted the cde-1603-accordion-api-color-spacing-changes branch January 31, 2024 17:23
Copy link
Contributor

github-actions bot commented Feb 2, 2024

🎉 This PR is included in version 17.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

github-actions bot commented Feb 9, 2024

🎉 This PR is included in version 17.0.0-next.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

🎉 This PR is included in version 17.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link
Contributor

github-actions bot commented Mar 1, 2024

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed PRs after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants