-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] data validation: unify checkbox style
Data validation check-boxes don't have the same style as any other check-boxes in the UI. I also added a missing test checking and unchecking the checkbox. closes #5072 Task: 4235283 X-original-commit: 246d233 Signed-off-by: Rémi Rahir (rar) <[email protected]> Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
- Loading branch information
1 parent
5c1bfed
commit 8544e2f
Showing
4 changed files
with
32 additions
and
15 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
11 changes: 5 additions & 6 deletions
11
src/components/data_validation_overlay/dv_checkbox/dv_checkbox.xml
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,11 +1,10 @@ | ||
<templates> | ||
<t t-name="o-spreadsheet-DataValidationCheckbox"> | ||
<input | ||
type="checkbox" | ||
class="o-dv-checkbox" | ||
t-att-class="{'pe-none': isDisabled}" | ||
t-on-change="onCheckboxChange" | ||
t-att-checked="checkBoxValue" | ||
<Checkbox | ||
name="'data-validation-checkbox'" | ||
value="checkBoxValue" | ||
onChange.bind="onCheckboxChange" | ||
className="isDisabled ? 'pe-none o-dv-checkbox' : 'o-dv-checkbox'" | ||
/> | ||
</t> | ||
</templates> |
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