Merge pull request #11359 from strapi/fix-background

Fix background overflow
This commit is contained in:
cyril lopez 2021-10-27 12:50:00 +02:00 committed by GitHub
commit 434831f855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -10,6 +10,10 @@ const loadCss = async () => {
loadCss();
const GlobalStyle = createGlobalStyle``;
const GlobalStyle = createGlobalStyle`
body {
background: ${({ theme }) => theme.colors.neutral100};
}
`;
export default GlobalStyle;

View File

@ -10,7 +10,7 @@ const schema = yup.object().shape({
.required(translatedErrors.required),
roles: yup
.array()
.min(1, translatedErrors.min)
.min(1, translatedErrors.required)
.required(translatedErrors.required),
});

View File

@ -4,7 +4,7 @@ import { translatedErrors } from '@strapi/helper-plugin';
const schema = {
roles: yup
.array()
.min(1)
.min(1, translatedErrors.required)
.required(translatedErrors.required),
};