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

feat(Accordion): Clockface 4 Updates #859

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

ChitlangeSahas
Copy link
Contributor

@ChitlangeSahas ChitlangeSahas commented Oct 6, 2022

Closes: #822

Accordion updates for Clockface 4 to match figma.

Screen.Recording.2022-10-05.at.11.11.18.PM.mov

@@ -106,7 +96,7 @@ export const AccordionRoot = forwardRef<AccordionRef, AccordionProps>(
const contextState = {
isExpanded,
setExpanded,
iconPlacementPosition: hasBody ? iconPlacementPosition : Direction.None,
iconPlacementPosition: hasBody ? Direction.Left : Direction.None,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want to force left placement of icons for more consistency.

@@ -283,9 +281,6 @@ accordionStories.add(
style={{justifyContent: 'none', alignItems: 'start', display: 'block'}}
>
<Accordion
iconPlacement={
Copy link
Contributor Author

Choose a reason for hiding this comment

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

delete that option from storybook

@@ -411,9 +400,14 @@ accordionStories.add(
</Accordion.AccordionHeader>
<Accordion.AccordionBodyItem>
<span>
This is your detailed body. This is your detailed body. This is
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found this annoying, so changed it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lorem ipsum is a pretty standard replacement.

1. Colors and Icon placement
2. Fixed the icon bug for when accordion opens/closes (it didn't change icons)
3. Updated storybook
Comment on lines +77 to +79
&--no-body {
margin-left: 25px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screen Shot 2022-10-05 at 10 47 48 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

previous, looked off.

Screen Shot 2022-10-05 at 10 48 34 PM

@ChitlangeSahas ChitlangeSahas changed the title feat: Clockface 4 upgrades feat(Accordion): Clockface 4 Updates Oct 6, 2022
@ChitlangeSahas ChitlangeSahas deleted the clockface_4_running_master branch October 6, 2022 06:07
@ChitlangeSahas ChitlangeSahas restored the clockface_4_running_master branch October 6, 2022 06:07
@ChitlangeSahas ChitlangeSahas reopened this Oct 6, 2022
@ChitlangeSahas ChitlangeSahas changed the base branch from master to clockface-4-master October 6, 2022 06:08
@ChitlangeSahas ChitlangeSahas marked this pull request as ready for review October 6, 2022 06:08
@ChitlangeSahas ChitlangeSahas merged commit bab941f into clockface-4-master Oct 6, 2022
@ChitlangeSahas ChitlangeSahas deleted the clockface_4_running_master branch October 6, 2022 06:12
@ChitlangeSahas
Copy link
Contributor Author

Part of #6090

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.

Update Accordion component colors & remove right aligned icon option
1 participant