Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(*-slider)!: refactor featured-slider & case-study-slider (#303)
* refactor(case-study-slider)!: convert to CSS modules * refactor(featured-slider)!: convert to CSS modules * refactor(case-study-slider): DRY up by using featured-slider * fix(featured-slider): fix named export causing issues in swingset * tests(*-slider): fix up tests * chore: add changesets * Update packages/featured-slider/package.json Co-authored-by: Jeff Escalante <jescalan@users.noreply.github.com> Co-authored-by: Jeff Escalante <jescalan@users.noreply.github.com>
- Loading branch information
Showing
22 changed files
with
13,034 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@hashicorp/react-featured-slider': major | ||
--- | ||
|
||
- 💥 BREAKING CHANGE: Converts to CSS modules. | ||
- Consumers will need to remove any `@hashicorp/react-featured-slider/style.css` imports. | ||
- To support overrides in projects, consumers can use the `className` prop. | ||
- For example, you can pass `className="g-featured-slider` to retain existing overrides. | ||
- ✨ Adds named `FeaturedSlideInner` export | ||
- Allows component to be used without external margin | ||
- Supports reconciling duplicative code in `case-study-slider` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'@hashicorp/react-case-study-slider': major | ||
--- | ||
|
||
- 💥 BREAKING CHANGE: Converts to CSS modules. | ||
- Consumers will need to remove any `@hashicorp/react-case-study-slider/style.css` imports. | ||
- To support overrides in projects, consumers can use the `className` prop. | ||
- For example, you can pass `className="g-case-study-slider` to retain existing overrides. | ||
- 🔨 Refactors to re-use work in `featured-slider` | ||
- Props interface remains unchanged |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d8f4d4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: