-
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.
* update component sing native dialog and polyfill * create new ModalContext * add tests * add translations * add documentation * update NotificationModal component * export components * fix scroll-disabling styles * require min typescript version of 4.1 * fix ::backdrop inheritance issue for older browsers * add changeset * fix package-lock.json * fix animation duration * fix: classes order * Silence lint warnings in CI * Format Modal.mdx * fix CI * refactor styles * fix tests * code review Pt 1 * optimise scrolling * use useStack * export useScrollLock * refactor hasNativeDialogSupport * format file * cde review pt1 * add doc * refactor styles * improve closing modal on unmount * refactor tests * styles * fix useRef * fix scroll affordance * add layout padded * add doc to useScrollLock * fix params * restore scroll on clean up * fix CR workflow that creates previews based on main when using `issue_comment` * remove unused animation styles * add explanation for box-shadow workaround * use label workaround * change DateInput positioning to fixed * fix modal width * add post CR comment --------- Co-authored-by: Connor Bär <[email protected]>
- Loading branch information
1 parent
673650a
commit 48cc697
Showing
80 changed files
with
2,034 additions
and
592 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-oss/circuit-ui": minor | ||
--- | ||
|
||
Set an explicit minimum version for TypeScript of 4.1 or higher. While this is technically a breaking change, v4.1 was released over 4 years ago, so we don't expect this to break anyone's code. Please let us know if this causes you issues. |
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-oss/circuit-ui": minor | ||
--- | ||
|
||
Refactored the NotificationModal component to use the new Modal component under the hood. |
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-oss/design-tokens": minor | ||
--- | ||
|
||
Added "::backdrop" to the list of selectors to apply theme custom properties to. See https://developer.chrome.com/blog/css-backdrop-inheritance. |
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-oss/circuit-ui": minor | ||
--- | ||
|
||
Added a new hook `useScrollLock` to disable page scroll on demand. |
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-oss/circuit-ui": minor | ||
--- | ||
|
||
Deprecated the `hideCloseButton` prop in the Modal and NotificationModal components. It had no effect. |
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-oss/circuit-ui": minor | ||
--- | ||
|
||
Added default translations for the Modal and NotificationModal components. The `closeButtonLabel` prop is now optional. |
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-oss/circuit-ui": minor | ||
--- | ||
|
||
Refactored the Modal component to use the native `dialog` element. The Modal component can now be rendered directly in your JSX (the older `useModal` hook continues to be supported). |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Oops, something went wrong.