PNP UI Change for Preferences
This commit is contained in:
parent
a27890b988
commit
f94e43e74a
3 changed files with 30 additions and 27 deletions
|
@ -5911,6 +5911,10 @@
|
||||||
"messageformat": "Choose who can see your phone number and who can contact you on Signal with it.",
|
"messageformat": "Choose who can see your phone number and who can contact you on Signal with it.",
|
||||||
"description": "Body of Phone Number row in Privacy section of Preferences window"
|
"description": "Body of Phone Number row in Privacy section of Preferences window"
|
||||||
},
|
},
|
||||||
|
"icu:Preferences__pnp__row--button": {
|
||||||
|
"messageformat": "Change…",
|
||||||
|
"description": "Text of Phone Number row button in Privacy section of Preferences window"
|
||||||
|
},
|
||||||
"icu:Preferences__pnp__sharing--title": {
|
"icu:Preferences__pnp__sharing--title": {
|
||||||
"messageformat": "Who can see my number",
|
"messageformat": "Who can see my number",
|
||||||
"description": "Title for the phone number sharing setting row"
|
"description": "Title for the phone number sharing setting row"
|
||||||
|
|
|
@ -39,6 +39,10 @@
|
||||||
padding-inline: 24px;
|
padding-inline: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
legend {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
&__button {
|
&__button {
|
||||||
@include button-reset;
|
@include button-reset;
|
||||||
@include font-body-1;
|
@include font-body-1;
|
||||||
|
@ -161,9 +165,7 @@
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link {
|
&__pnp {
|
||||||
@include button-reset;
|
|
||||||
padding-block: 0px 28px;
|
|
||||||
padding-inline: 0;
|
padding-inline: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@ -171,21 +173,9 @@
|
||||||
@include font-body-1;
|
@include font-body-1;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__link:not(:last-child) {
|
|
||||||
border-bottom: 1px solid $color-gray-15;
|
|
||||||
@include light-theme {
|
|
||||||
border-color: $color-gray-15;
|
|
||||||
}
|
|
||||||
@include dark-theme {
|
|
||||||
border-color: $color-gray-65;
|
|
||||||
}
|
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__control {
|
&__control {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -208,6 +198,7 @@
|
||||||
|
|
||||||
&--value {
|
&--value {
|
||||||
color: $color-gray-45;
|
color: $color-gray-45;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--clickable {
|
&--clickable {
|
||||||
|
|
|
@ -1191,18 +1191,26 @@ export function Preferences({
|
||||||
{i18n('icu:Preferences__button--privacy')}
|
{i18n('icu:Preferences__button--privacy')}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<SettingsRow>
|
||||||
type="button"
|
<Control
|
||||||
className="Preferences__link"
|
left={
|
||||||
onClick={() => setPage(Page.PNP)}
|
<div className="Preferences__pnp">
|
||||||
>
|
<h3>{i18n('icu:Preferences__pnp__row--title')}</h3>
|
||||||
<h3 className="Preferences__padding">
|
<div className="Preferences__description">
|
||||||
{i18n('icu:Preferences__pnp__row--title')}
|
{i18n('icu:Preferences__pnp__row--body')}
|
||||||
</h3>
|
</div>
|
||||||
<div className="Preferences__padding Preferences__description">
|
</div>
|
||||||
{i18n('icu:Preferences__pnp__row--body')}
|
}
|
||||||
</div>
|
right={
|
||||||
</button>
|
<Button
|
||||||
|
onClick={() => setPage(Page.PNP)}
|
||||||
|
variant={ButtonVariant.Secondary}
|
||||||
|
>
|
||||||
|
{i18n('icu:Preferences__pnp__row--button')}
|
||||||
|
</Button>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</SettingsRow>
|
||||||
<SettingsRow>
|
<SettingsRow>
|
||||||
<Control
|
<Control
|
||||||
left={i18n('icu:Preferences--blocked')}
|
left={i18n('icu:Preferences--blocked')}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue