Skip to content

Commit

Permalink
fix: update list alignment styles (#402)
Browse files Browse the repository at this point in the history
* fix: update list alignment styles

* chore: increase specificity
  • Loading branch information
alisonjoseph authored Sep 11, 2019
1 parent 86a70a3 commit 26b1b4c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
7 changes: 7 additions & 0 deletions packages/example/src/pages/components/markdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ Strikethrough uses two tildes. ~~Scratch this.~~
1. Nested list item
3. In markdown, the actual numbers don't matter, just that it's a number
4. In markdown, the actual numbers don't matter, just that it's a number
5. In markdown, the actual numbers don't matter, just that it's a number
6. In markdown, the actual numbers don't matter, just that it's a number
7. In markdown, the actual numbers don't matter, just that it's a number
8. In markdown, the actual numbers don't matter, just that it's a number
9. In markdown, the actual numbers don't matter, just that it's a number
10. In markdown, the actual numbers don't matter, just that it's a number
11. In markdown, the actual numbers don't matter, just that it's a number

**Nested lists**

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,16 @@
margin-bottom: $spacing-06;
}

.list-item {
:global(.bx--list--ordered) .list-item,
:global(.bx--list--unordered) .list-item {
@include carbon--type-style('body-long-02');
padding-right: 0;
margin: 0;
width: 100%;
padding-left: $spacing-05;
}

:global(.container--dark) :global(.bx--list__item) {
color: $carbon--white-0;
}

//---------------------------------------
Expand Down Expand Up @@ -170,10 +175,3 @@
margin-top: $spacing-04;
@include carbon--type-style('heading-01');
}

//---------------------------------------
// Lists
//---------------------------------------
:global(.container--dark) :global(.bx--list__item) {
color: $carbon--white-0;
}

1 comment on commit 26b1b4c

@vercel
Copy link

@vercel vercel bot commented on 26b1b4c Sep 11, 2019

Choose a reason for hiding this comment

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

Please sign in to comment.