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

884 accordion styling(normal&dark theme) #888

Merged
merged 6 commits into from
Mar 30, 2023

Conversation

Pooja-kj
Copy link
Contributor

[Chore] Accordion Styling (Normal & Dark theme) #884

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added
  • Docs have been added or updated

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
  • Style Update (CSS)
  • Other... Please describe:

Resolves 884

What is the new behavior?

Changed below styles
Default Accordion

Header should be equivalent to an H4 (18px - 1.125rem).
The body contains unexpected padding around the content (1.5rem top/bottom) where UX outlined in as 1rem all around.
The body text should always be 14px (0.875rem) default.

Slim Accordion

Header should be equivalent to an H5 (14px - 0.875rem).
Header section padding should be 10px (0.625rem) top and bottom and 16px(1rem) left and right
The body text should always be 14px (0.875rem) default.
The padding around the body should be 16px (1rem) all around.

Dark Theme

Follows the above rules with the following additions
Header background color when collapsed is #313536
Header background color hovered when collapsed is #313536 3.5% darkened (HEX equivalent #292C2D)
Header background color when expanded is #181C1C.
Header background color hovered when expanded is #181C1C 3.5% darkened (HEX equivalent #101212)
border-radius needs to be 0px when the accordion reached the full width of the off-canvas container.

Does this PR introduce a breaking change?

  • Yes
  • No

css changes for button padding
Accordion styles
Default
Slim
Dark
@Pooja-kj Pooja-kj linked an issue Sep 29, 2022 that may be closed by this pull request
@Pooja-kj Pooja-kj requested review from stolve and removed request for stolve September 29, 2022 19:59
@Vijeta7 Vijeta7 requested a review from stolve September 30, 2022 09:35
Copy link
Contributor

@Saravanan-Tangoe Saravanan-Tangoe left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻 , Thanks

Copy link

@stolve stolve left a comment

Choose a reason for hiding this comment

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

I need to be provided with a screenshot or some visual to compare the issue to the fix.

@RonMichaud RonMichaud merged commit b5a7a42 into dev Mar 30, 2023
@RonMichaud RonMichaud deleted the 884-Accordion_Styling(Normal&Dark-theme) branch March 30, 2023 19:02
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.

[Chore] Accordion Styling (Normal & Dark theme)
4 participants