Merge pull request #11602 from strapi/fix-password-icon

[v4] Fix password icon color
This commit is contained in:
cyril lopez 2021-11-17 11:47:34 +01:00 committed by GitHub
commit 3969927c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 12 deletions

View File

@ -466,7 +466,7 @@ exports[`DynamicTable renders and matches the snapshot 1`] = `
</div> </div>
<nav <nav
aria-label="pagination" aria-label="pagination"
class="sc-eGCaLh" class="sc-dFJtaz"
> >
<ul <ul
class="c16 c17" class="c16 c17"

View File

@ -1553,7 +1553,7 @@ describe('ADMIN | Pages | USERS | ListPage', () => {
</div> </div>
<nav <nav
aria-label="pagination" aria-label="pagination"
class="sc-bXDkGd" class="sc-ctaXho"
> >
<ul <ul
class="c60 c61" class="c60 c61"

View File

@ -15,6 +15,7 @@ import { Textarea } from '@strapi/design-system/Textarea';
import { TextInput } from '@strapi/design-system/TextInput'; import { TextInput } from '@strapi/design-system/TextInput';
import { TimePicker } from '@strapi/design-system/TimePicker'; import { TimePicker } from '@strapi/design-system/TimePicker';
import { ToggleInput } from '@strapi/design-system/ToggleInput'; import { ToggleInput } from '@strapi/design-system/ToggleInput';
import { Icon } from '@strapi/design-system/Icon';
import EyeStriked from '@strapi/icons/EyeStriked'; import EyeStriked from '@strapi/icons/EyeStriked';
import Eye from '@strapi/icons/Eye'; import Eye from '@strapi/icons/Eye';
import DateTimePicker from '../DateTimePicker'; import DateTimePicker from '../DateTimePicker';
@ -239,7 +240,11 @@ const GenericInput = ({
}} }}
type="button" type="button"
> >
{showPassword ? <Eye /> : <EyeStriked />} {showPassword ? (
<Icon as={Eye} color="neutral500" />
) : (
<Icon as={EyeStriked} color="neutral500" />
)}
</button> </button>
} }
label={label} label={label}

View File

@ -36,13 +36,6 @@ exports[`<MediaLibraryInput /> renders and matches the snapshot 1`] = `
align-items: center; align-items: center;
} }
.c14 {
font-weight: 500;
font-size: 0.75rem;
line-height: 1.33;
color: #666687;
}
.c12 { .c12 {
color: #4945ff; color: #4945ff;
margin-bottom: 12px; margin-bottom: 12px;
@ -54,6 +47,13 @@ exports[`<MediaLibraryInput /> renders and matches the snapshot 1`] = `
fill: #4945ff; fill: #4945ff;
} }
.c14 {
font-weight: 500;
font-size: 0.75rem;
line-height: 1.33;
color: #666687;
}
.c0 { .c0 {
padding-bottom: 4px; padding-bottom: 4px;
} }

View File

@ -744,7 +744,7 @@ describe('Admin | containers | RoleCreatePage', () => {
border: 1px solid #4945ff; border: 1px solid #4945ff;
} }
.c39:hover:not([aria-disabled='true']) .sc-eiWPNw { .c39:hover:not([aria-disabled='true']) .sc-dmqUcu {
color: #271fe0; color: #271fe0;
} }

View File

@ -816,7 +816,7 @@ describe('Admin | containers | RoleEditPage', () => {
border: 1px solid #4945ff; border: 1px solid #4945ff;
} }
.c44:hover:not([aria-disabled='true']) .sc-heejUR { .c44:hover:not([aria-disabled='true']) .sc-bQbCr {
color: #271fe0; color: #271fe0;
} }