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

[bugfix] Use fit-content on checkbox #707

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/components/wallet/send/WalletSendForm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

.checkbox {
font-family: var(--font-mono-light);
width: fit-content;
}
}

Expand Down
4 changes: 4 additions & 0 deletions app/themes/overrides/CheckboxOverrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

.root {
align-items: center;

// Remove once this PR is merged
// https://github.com/input-output-hk/react-polymorph/pull/118
width: fit-content;

.checked {
background-color: var(--rp-checkbox-check-bg-color);
Expand Down
6 changes: 6 additions & 0 deletions app/themes/overrides/CheckboxOverridesClassic.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// Css module overrides go here …

.root {
// Remove once this PR is merged
// https://github.com/input-output-hk/react-polymorph/pull/118
width: fit-content;
}

.check {
// manually setting the z-index is a temporary fix until this PR is merged & we upgrade the lib
// https://github.com/input-output-hk/react-polymorph/pull/99
Expand Down