💄(react) improve Select actions ui
The button were too big compared to the sketches. So we re-adjust their sizes and positions.
This commit is contained in:
5
.changeset/big-radios-exist.md
Normal file
5
.changeset/big-radios-exist.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@openfun/cunningham-react": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
improve Select actions ui
|
||||||
@@ -65,6 +65,7 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: 3px;
|
top: 3px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
gap: 0.5rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
// This is made to avoid this relative element to force its container height.
|
// This is made to avoid this relative element to force its container height.
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export const SelectMonoAux = ({
|
|||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="small"
|
size="nano"
|
||||||
aria-label={t(
|
aria-label={t(
|
||||||
"components.forms.select.clear_button_aria_label",
|
"components.forms.select.clear_button_aria_label",
|
||||||
)}
|
)}
|
||||||
@@ -149,7 +149,7 @@ export const SelectMonoAux = ({
|
|||||||
|
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="small"
|
size="nano"
|
||||||
className="c__select__inner__actions__open"
|
className="c__select__inner__actions__open"
|
||||||
icon={
|
icon={
|
||||||
<span
|
<span
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ export const SelectMultiAux = ({
|
|||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="small"
|
size="nano"
|
||||||
aria-label={t(
|
aria-label={t(
|
||||||
"components.forms.select.clear_all_button_aria_label",
|
"components.forms.select.clear_all_button_aria_label",
|
||||||
)}
|
)}
|
||||||
@@ -132,7 +132,7 @@ export const SelectMultiAux = ({
|
|||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
size="small"
|
size="nano"
|
||||||
className="c__select__inner__actions__open"
|
className="c__select__inner__actions__open"
|
||||||
icon={
|
icon={
|
||||||
<span
|
<span
|
||||||
|
|||||||
Reference in New Issue
Block a user