Skip to content

Commit

Permalink
[IMP] components: clickable pointer on checkbox label
Browse files Browse the repository at this point in the history
This changes the mouse pointer when hovering a checkbox label.
It indicates that it's clickable.

Task: 4358098
Part-of: #5287
Signed-off-by: Rémi Rahir (rar) <[email protected]>
  • Loading branch information
LucasLefevre authored and rrahir committed Dec 17, 2024
1 parent 1e87515 commit 6aeccfb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/side_panel/components/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ css/* scss */ `
box-sizing: border-box;
outline: none;
border: 1px solid ${GRAY_300};
cursor: pointer;
&:hover {
border-color: ${ACTION_COLOR};
Expand Down
1 change: 1 addition & 0 deletions src/components/side_panel/components/checkbox/checkbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<t t-name="o-spreadsheet.Checkbox">
<label
class="o-checkbox d-flex align-items-center"
role="button"
t-att-title="props.title"
t-att-class="{'text-muted': props.disabled }"
t-attf-class="{{props.className}}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ exports[`Spreadsheet pivot side panel It should correctly be displayed 1`] = `
<label
class="o-checkbox d-flex align-items-center"
role="button"
title="Changing the pivot definition requires to reload the data. It may take some time."
>
<input
Expand Down Expand Up @@ -395,6 +396,7 @@ exports[`Spreadsheet pivot side panel It should display only the selection input
<label
class="o-checkbox d-flex align-items-center"
role="button"
title="Changing the pivot definition requires to reload the data. It may take some time."
>
<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports[`Label range Can add options to the label range component 1`] = `
</div>
<label
class="o-checkbox d-flex align-items-center mt-2"
role="button"
>
<input
class="me-2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`Checkbox Can render a checkbox 1`] = `
<div>
<label
class="o-checkbox d-flex align-items-center"
role="button"
>
<input
class="me-2"
Expand Down

0 comments on commit 6aeccfb

Please sign in to comment.