Skip to content
Snippets Groups Projects
Commit ed3dfb0c authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(ecogesture): Fix focus buttons on IOS

parent e1a84456
No related branches found
No related tags found
2 merge requests!555chore(release): 1.7.2,!548Fix/focus button ios
...@@ -52,6 +52,7 @@ const EcogestureSelectionDetail: React.FC<EcogestureSelectionDetailProps> = ({ ...@@ -52,6 +52,7 @@ const EcogestureSelectionDetail: React.FC<EcogestureSelectionDetailProps> = ({
classes={{ classes={{
root: 'btn-secondary-negative', root: 'btn-secondary-negative',
label: 'text-14-bold', label: 'text-14-bold',
focusVisible: 'noFocus',
}} }}
onClick={() => validate(true, false)} onClick={() => validate(true, false)}
> >
...@@ -63,6 +64,7 @@ const EcogestureSelectionDetail: React.FC<EcogestureSelectionDetailProps> = ({ ...@@ -63,6 +64,7 @@ const EcogestureSelectionDetail: React.FC<EcogestureSelectionDetailProps> = ({
classes={{ classes={{
root: 'btn-secondary-negative', root: 'btn-secondary-negative',
label: 'text-14-bold', label: 'text-14-bold',
focusVisible: 'noFocus',
}} }}
onClick={() => validate(false, true)} onClick={() => validate(false, true)}
> >
...@@ -74,6 +76,7 @@ const EcogestureSelectionDetail: React.FC<EcogestureSelectionDetailProps> = ({ ...@@ -74,6 +76,7 @@ const EcogestureSelectionDetail: React.FC<EcogestureSelectionDetailProps> = ({
classes={{ classes={{
root: 'btn-secondary-negative', root: 'btn-secondary-negative',
label: 'text-14-bold', label: 'text-14-bold',
focusVisible: 'noFocus',
}} }}
onClick={() => validate(false, false)} onClick={() => validate(false, false)}
> >
......
...@@ -89,6 +89,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -89,6 +89,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
aria-label="ecogesture_selection.button_objective" aria-label="ecogesture_selection.button_objective"
classes={ classes={
Object { Object {
"focusVisible": "noFocus",
"label": "text-14-bold", "label": "text-14-bold",
"root": "btn-secondary-negative", "root": "btn-secondary-negative",
} }
...@@ -108,7 +109,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -108,7 +109,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
"disableElevation": "MuiButton-disableElevation", "disableElevation": "MuiButton-disableElevation",
"disabled": "Mui-disabled", "disabled": "Mui-disabled",
"endIcon": "MuiButton-endIcon", "endIcon": "MuiButton-endIcon",
"focusVisible": "Mui-focusVisible", "focusVisible": "Mui-focusVisible noFocus",
"fullWidth": "MuiButton-fullWidth", "fullWidth": "MuiButton-fullWidth",
"iconSizeLarge": "MuiButton-iconSizeLarge", "iconSizeLarge": "MuiButton-iconSizeLarge",
"iconSizeMedium": "MuiButton-iconSizeMedium", "iconSizeMedium": "MuiButton-iconSizeMedium",
...@@ -138,7 +139,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -138,7 +139,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
component="button" component="button"
disabled={false} disabled={false}
focusRipple={true} focusRipple={true}
focusVisibleClassName="Mui-focusVisible" focusVisibleClassName="Mui-focusVisible noFocus"
onClick={[Function]} onClick={[Function]}
type="button" type="button"
> >
...@@ -155,7 +156,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -155,7 +156,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
component="button" component="button"
disabled={false} disabled={false}
focusRipple={true} focusRipple={true}
focusVisibleClassName="Mui-focusVisible" focusVisibleClassName="Mui-focusVisible noFocus"
onClick={[Function]} onClick={[Function]}
type="button" type="button"
> >
...@@ -253,6 +254,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -253,6 +254,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
aria-label="ecogesture_selection.button_doing" aria-label="ecogesture_selection.button_doing"
classes={ classes={
Object { Object {
"focusVisible": "noFocus",
"label": "text-14-bold", "label": "text-14-bold",
"root": "btn-secondary-negative", "root": "btn-secondary-negative",
} }
...@@ -272,7 +274,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -272,7 +274,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
"disableElevation": "MuiButton-disableElevation", "disableElevation": "MuiButton-disableElevation",
"disabled": "Mui-disabled", "disabled": "Mui-disabled",
"endIcon": "MuiButton-endIcon", "endIcon": "MuiButton-endIcon",
"focusVisible": "Mui-focusVisible", "focusVisible": "Mui-focusVisible noFocus",
"fullWidth": "MuiButton-fullWidth", "fullWidth": "MuiButton-fullWidth",
"iconSizeLarge": "MuiButton-iconSizeLarge", "iconSizeLarge": "MuiButton-iconSizeLarge",
"iconSizeMedium": "MuiButton-iconSizeMedium", "iconSizeMedium": "MuiButton-iconSizeMedium",
...@@ -302,7 +304,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -302,7 +304,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
component="button" component="button"
disabled={false} disabled={false}
focusRipple={true} focusRipple={true}
focusVisibleClassName="Mui-focusVisible" focusVisibleClassName="Mui-focusVisible noFocus"
onClick={[Function]} onClick={[Function]}
type="button" type="button"
> >
...@@ -319,7 +321,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -319,7 +321,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
component="button" component="button"
disabled={false} disabled={false}
focusRipple={true} focusRipple={true}
focusVisibleClassName="Mui-focusVisible" focusVisibleClassName="Mui-focusVisible noFocus"
onClick={[Function]} onClick={[Function]}
type="button" type="button"
> >
...@@ -417,6 +419,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -417,6 +419,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
aria-label="ecogesture_selection.button_skip" aria-label="ecogesture_selection.button_skip"
classes={ classes={
Object { Object {
"focusVisible": "noFocus",
"label": "text-14-bold", "label": "text-14-bold",
"root": "btn-secondary-negative", "root": "btn-secondary-negative",
} }
...@@ -436,7 +439,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -436,7 +439,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
"disableElevation": "MuiButton-disableElevation", "disableElevation": "MuiButton-disableElevation",
"disabled": "Mui-disabled", "disabled": "Mui-disabled",
"endIcon": "MuiButton-endIcon", "endIcon": "MuiButton-endIcon",
"focusVisible": "Mui-focusVisible", "focusVisible": "Mui-focusVisible noFocus",
"fullWidth": "MuiButton-fullWidth", "fullWidth": "MuiButton-fullWidth",
"iconSizeLarge": "MuiButton-iconSizeLarge", "iconSizeLarge": "MuiButton-iconSizeLarge",
"iconSizeMedium": "MuiButton-iconSizeMedium", "iconSizeMedium": "MuiButton-iconSizeMedium",
...@@ -466,7 +469,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -466,7 +469,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
component="button" component="button"
disabled={false} disabled={false}
focusRipple={true} focusRipple={true}
focusVisibleClassName="Mui-focusVisible" focusVisibleClassName="Mui-focusVisible noFocus"
onClick={[Function]} onClick={[Function]}
type="button" type="button"
> >
...@@ -483,7 +486,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] = ...@@ -483,7 +486,7 @@ exports[`EcogestureSelectionDetail component should be rendered correctly 1`] =
component="button" component="button"
disabled={false} disabled={false}
focusRipple={true} focusRipple={true}
focusVisibleClassName="Mui-focusVisible" focusVisibleClassName="Mui-focusVisible noFocus"
onClick={[Function]} onClick={[Function]}
type="button" type="button"
> >
......
...@@ -47,13 +47,20 @@ ...@@ -47,13 +47,20 @@
height: 7.375rem; height: 7.375rem;
width: 6.5rem; width: 6.5rem;
border-radius: 0.25rem; border-radius: 0.25rem;
&:focus { &:focus,
&.active,
&:disabled,
&:hover {
background: transparent; background: transparent;
} }
span { span {
flex-direction: column; flex-direction: column;
color: $grey-bright; color: $grey-bright;
} }
} }
button.noFocus {
background: transparent;
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment