collapse icon indicating copy to clipboard operation
collapse copied to clipboard

Add support for contentClass prop

Open stan-sack opened this issue 4 years ago • 2 comments

Background

  • I've recently run into some issues with the content component where I am unable to set overflow: visible on the div and an absolute div inside is getting cut off. I need to be able to pass a className to the content container, it doesnt work to just set the style on the main Panel div.

Changes

  • Add support for contentClass prop

Tests

  • [x] Existing unit tests pass
  • [x] Verified that the feature works in my own project by building and importing the newly built Panel

stan-sack avatar Sep 28 '20 12:09 stan-sack

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/collapse/nasta7l59
✅ Preview: https://collapse-git-fork-stan-sack-stancontentclass.react-component.vercel.app

vercel[bot] avatar Sep 28 '20 12:09 vercel[bot]

Codecov Report

Merging #166 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   97.43%   97.43%           
=======================================
  Files           5        5           
  Lines         117      117           
  Branches       35       35           
=======================================
  Hits          114      114           
  Misses          3        3           
Impacted Files Coverage Δ
src/Panel.tsx 95.83% <ø> (ø)
src/PanelContent.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b5d62a6...817041e. Read the comment docs.

codecov[bot] avatar Sep 28 '20 12:09 codecov[bot]