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): add custom class on card level #3563

Merged
merged 1 commit into from Feb 13, 2020

Conversation

gpolychronis
Copy link
Contributor

Enable customization of accordion panel conditionally according to being disabled or not.

Fixes #2262

Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

Hey, 2 things here:

  1. Div's don't have disabled attribute, so the markup will be invalid → https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled

  2. Tests are missing

We should probably explore the way of adding a custom css class (as it is done, for example for modals and tooltips)

@codecov-io
Copy link

codecov-io commented Jan 29, 2020

Codecov Report

Merging #3563 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3563      +/-   ##
==========================================
+ Coverage   91.67%   91.67%   +<.01%     
==========================================
  Files         100      100              
  Lines        2883     2884       +1     
  Branches      532      532              
==========================================
+ Hits         2643     2644       +1     
  Misses        183      183              
  Partials       57       57
Flag Coverage Δ
#e2e 56.44% <100%> (+0.01%) ⬆️
#unit 88.51% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/accordion/accordion.ts 98.46% <100%> (+0.02%) ⬆️

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 035d399...8aa1564. Read the comment docs.

@gpolychronis gpolychronis changed the title feat(accordion): add disabled attribute on card level feat(accordion): add custom class on card level Feb 4, 2020
@maxokorokov maxokorokov added this to the 5.3.0 milestone Feb 4, 2020
Copy link
Member

@maxokorokov maxokorokov left a comment

Choose a reason for hiding this comment

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

LGTM for me too, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accordion : Work with dynamic CSS class
4 participants