Skip to content

Commit

Permalink
fix(accordion): top align accordion headings (#4125)
Browse files Browse the repository at this point in the history
* fix(accordion): top align accordion headings

* fix(theme-tokens): offset chevron positioning due to alignment change

* docs(Accordion): adjust example according to design guidelines

* chore: sync generated files
  • Loading branch information
emyarod authored and jnm2377 committed Sep 27, 2019
1 parent 40da1fa commit 1974a1e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -9872,7 +9872,7 @@ Accordion styles
@include button-reset;
color: $text-01;
display: flex;
align-items: center;
align-items: flex-start;
justify-content: $accordion-justify-content;
cursor: pointer;
padding: rem(6px) 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
@include button-reset;
color: $text-01;
display: flex;
align-items: center;
align-items: flex-start;
justify-content: $accordion-justify-content;
cursor: pointer;
padding: rem(6px) 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/globals/scss/_theme-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ $accordion-justify-content: flex-start !default;
/// @type Value
/// @access public
/// @group accordion
$accordion-arrow-margin: 0 $carbon--spacing-05 0 0 !default;
$accordion-arrow-margin: 2px $carbon--spacing-05 0 0 !default;

/// @type Value
/// @access public
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/Accordion/Accordion-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ storiesOf('Accordion', module)
</AccordionItem>
<AccordionItem
title={
<h4>
<span>
Section 4 title (<em>the title can be a node</em>)
</h4>
</span>
}
{...props}>
<p>
Expand Down

0 comments on commit 1974a1e

Please sign in to comment.