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

fix(expandable): clean up classes #184

Merged

Conversation

felicia-haggqvist
Copy link
Contributor

@felicia-haggqvist felicia-haggqvist commented Jul 29, 2024

Description

This PR ensures no classes styling the same CSS properties are being set on the same HTML element in the Expandable component.

Changes:

  • Renamed classNames in w-expandable component.
  • Refactored w-expandable component
  • Remove use of expandableTitle and use instead ccExpandable.title and ccExpandable.titleType in order to look and behave the same as in react and elements.
  • Remove deprecated info prop
  • Replace paddingTop with contentWithTitle

How to test

Either link this branch with @warp-ds/css (fix/cleanup-expandable-component branch) or replace this for @warp-ds/css dependency in package.json: github:warp-ds/css#component-classes-cleanup with this github:warp-ds/css#fix/cleanup-expandable-component

@felicia-haggqvist felicia-haggqvist requested a review from a team July 29, 2024 08:42
@felicia-haggqvist felicia-haggqvist self-assigned this Jul 29, 2024
@felicia-haggqvist felicia-haggqvist merged commit ab42f55 into component-classes-cleanup Jul 30, 2024
4 checks passed
@felicia-haggqvist felicia-haggqvist deleted the fix/cleanup-expandable-component branch July 30, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants