question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accordion content has padding right 25% applies

See original GitHub issue

What package(s) are you using?

  • carbon-components
  • carbon-components-react

Detailed description

Describe in detail the issue you’re having. Accordion content has 25% padding, this is taking a lot of space and didn’t used to be like this in v9.

Screen Shot 2020-01-09 at 2 48 01 PM

Is this issue related to a specific component? AccordionItem

What did you expect to happen? What happened instead? What would you like to see changed?

What browser are you working in? Chrome Version 79.0.3945.88 (Official Build) (64-bit)

What version of the Carbon Design System are you using? carbon-components-react: 7.9.0 carbon-components: 10.9.0

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

IBM Cloud

Steps to reproduce the issue

  1. Step one
  2. Step two
  3. Step three
  4. etc.

Please create a reduced test case in CodeSandbox

Additional information

  • Screenshots or code
  • Notes

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tw15egancommented, Jan 13, 2020

Currently, we just reduce the padding-right to 3rem on screens less than 800something px. We could add another breakpoint to make it just 16px under certain screen sizes (mobile)

0reactions
tw15egancommented, Jan 16, 2020

@ashpc I can get a fix in for this today. I will take specs from https://github.com/carbon-design-system/carbon/issues/4993#issuecomment-573199723

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to remove left and right margin in jquery ui accordion?
But I want to remove left and right margins of accordions to use whole page for data representation. I managed it with margin-left...
Read more >
Accordion content padding / alignment - Support - Themeco
Hi, Is it possible to either add padding to the left of my accordion content (not the title) or centre it so the...
Read more >
How to create an accordion menu using webflow?
Style it: padding left and right: 10px padding top and bottom: 20px. Create a Link Block, place it inside the Accordion Heading Wrap....
Read more >
Bootstrap Spacing - examples & tutorial
The same sizes apply to all directions (left, right, top, bottom) and for both margins and padding. Class name, Size, Visual representation .me-1,...
Read more >
Spacing · Bootstrap v5.0
Classes are built from a default Sass map ranging from .25rem to 3rem . ... Spacing utilities that apply to all breakpoints, from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found