-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API Making the read-only version of TextCheckboxGroupField more readable
- TextCheckboxGroupField now scaffolds its own fields. The read-only and react implementations expect specifically 2 fields in that particular order. - Fixing the class attribute -text-checkout-group-field, +text-checkbox-group-field - Converting the fields to literals when readonly and updating the styles so it looks good - Moving the read-only namespacing of fields to occur after transformations so that it's easier to refer to fields by their names
- Loading branch information
Showing
9 changed files
with
68 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
14 changes: 13 additions & 1 deletion
14
client/src/components/TextCheckboxGroupField/TextCheckboxGroupField.scss
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 |
---|---|---|
@@ -1,9 +1,21 @@ | ||
// Temporarily overwriting the styles from the CheckboxField component | ||
// since it cannot be removed easily | ||
.text-checkout-group-field { | ||
.text-checkbox-group-field { | ||
.form-check { | ||
display: inline; | ||
padding-left: 0; | ||
margin-bottom: 0; | ||
} | ||
|
||
&--read-only { | ||
display: flex; | ||
|
||
:first-child { | ||
flex: 1; | ||
} | ||
|
||
.show-title { | ||
font-style: italic; | ||
} | ||
} | ||
} |
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
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