-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate components to CSS Modules (#2163)
- Loading branch information
1 parent
415c73d
commit 6ff0b7d
Showing
434 changed files
with
10,822 additions
and
58,836 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,5 @@ | ||
--- | ||
'@sumup/icons': patch | ||
--- | ||
|
||
Fixed the `IconsManifest` type. |
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 @@ | ||
--- | ||
'@sumup/circuit-ui': major | ||
--- | ||
|
||
Migrated all [stable](https://circuit.sumup.com/?path=/docs/introduction-component-lifecycle--docs) components from [Emotion.js](https://github.com/emotion-js/emotion) to [CSS Modules](https://github.com/css-modules/css-modules). | ||
|
||
The styles are bundled and exported as a single CSS file as `@sumup/circuit-ui/styles.css`. Refer to your framework's documentation on how to include the styles globally in your application. | ||
|
||
The CSS file includes the base styles, so the BaseStyles component has been removed. | ||
|
||
If you are only importing [stable](https://circuit.sumup.com/?path=/docs/introduction-component-lifecycle--docs) components and aren't using Emotion.js in your app, you can remove all Emotion.js-related dependencies. |
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,5 @@ | ||
--- | ||
'@sumup/circuit-ui': minor | ||
--- | ||
|
||
Improved the accessibility of the SearchInput component. The input now has the `search` type and focus is returned to the input after clearing the value. |
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
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
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,54 @@ | ||
.filters { | ||
display: grid; | ||
grid-template-columns: 2fr 1fr 1fr; | ||
gap: var(--cui-spacings-kilo); | ||
margin-top: var(--cui-spacings-tera); | ||
margin-bottom: var(--cui-spacings-peta); | ||
} | ||
|
||
.category { | ||
margin-bottom: var(--cui-spacings-tera); | ||
} | ||
|
||
.list { | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.wrapper { | ||
position: relative; | ||
width: 7.5rem; | ||
margin-top: var(--cui-spacings-giga); | ||
margin-bottom: var(--cui-spacings-giga); | ||
text-align: center; | ||
} | ||
|
||
.size { | ||
display: block; | ||
font-style: italic; | ||
color: var(--cui-fg-subtle); | ||
} | ||
|
||
.icon-wrapper { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 64px; /* 2 * 32px icon */ | ||
} | ||
|
||
.icon { | ||
max-width: 3rem; | ||
transform: scale(2); | ||
} | ||
|
||
.label { | ||
font-size: var(--cui-typography-body-two-font-size); | ||
line-height: var(--cui-typography-body-two-line-height); | ||
} | ||
|
||
.badge { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%) rotate(-30deg); | ||
} |
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
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
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,8 @@ | ||
.base { | ||
margin-bottom: var(--cui-spacings-giga); | ||
} | ||
|
||
.base > * { | ||
font-size: var(--cui-typography-body-large-font-size) !important; | ||
line-height: var(--cui-typography-body-large-line-height) !important; | ||
} |
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
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,19 @@ | ||
.base { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
@media screen and (min-width: 600px) { | ||
.base { | ||
flex-direction: row; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 600px) { | ||
.vertical { | ||
flex-direction: column; | ||
} | ||
} |
Oops, something went wrong.