💄(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:
Nathan Vasse
2023-09-07 15:26:28 +02:00
committed by NathanVss
parent cdace69482
commit 9de9a9735d
4 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": minor
---
improve Select actions ui

View File

@@ -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;

View File

@@ -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

View File

@@ -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