-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3337 from mozilla/redesign/reduce-css
Room UI Redesign: Reduce Custom CSS
- Loading branch information
Showing
31 changed files
with
183 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ import PropTypes from "prop-types"; | |
import { CloseButton } from "../input/CloseButton"; | ||
import { Modal } from "../modal/Modal"; | ||
import { FormattedMessage } from "react-intl"; | ||
import styles from "./SignInModal.scss"; | ||
import { Button } from "../input/Button"; | ||
import { TextInputField } from "../input/TextInputField"; | ||
import { Column } from "../layout/Column"; | ||
|
@@ -33,7 +32,7 @@ export function SubmitEmail({ onSubmitEmail, initialEmail, showPrivacy, privacyU | |
); | ||
|
||
return ( | ||
<Column center padding as="form" onSubmit={onSubmitForm} className={styles.modalContent}> | ||
<Column center padding as="form" onSubmit={onSubmitForm}> | ||
<p>{message || <FormattedMessage id="sign-in.prompt" />}</p> | ||
<TextInputField | ||
name="email" | ||
|
@@ -44,22 +43,24 @@ export function SubmitEmail({ onSubmitEmail, initialEmail, showPrivacy, privacyU | |
placeholder="[email protected]" | ||
/> | ||
{(showTerms || showPrivacy) && ( | ||
<b className={styles.terms}> | ||
By proceeding, you agree to the{" "} | ||
{showTerms && ( | ||
<> | ||
<a rel="noopener noreferrer" target="_blank" href={termsUrl}> | ||
terms of use | ||
</a>{" "} | ||
</> | ||
)} | ||
{showTerms && showPrivacy && "and "} | ||
{showPrivacy && ( | ||
<a rel="noopener noreferrer" target="_blank" href={privacyUrl}> | ||
privacy notice | ||
</a> | ||
)}. | ||
</b> | ||
<p> | ||
<small> | ||
By proceeding, you agree to the{" "} | ||
{showTerms && ( | ||
<> | ||
<a rel="noopener noreferrer" target="_blank" href={termsUrl}> | ||
terms of use | ||
</a>{" "} | ||
</> | ||
)} | ||
{showTerms && showPrivacy && "and "} | ||
{showPrivacy && ( | ||
<a rel="noopener noreferrer" target="_blank" href={privacyUrl}> | ||
privacy notice | ||
</a> | ||
)}. | ||
</small> | ||
</p> | ||
)} | ||
<Button preset="accept" type="submit"> | ||
Next | ||
|
@@ -84,16 +85,18 @@ SubmitEmail.propTypes = { | |
|
||
export function WaitForVerification({ email, onCancel, showNewsletterSignup }) { | ||
return ( | ||
<Column center padding className={styles.modalContent}> | ||
<Column center padding> | ||
<p> | ||
<FormattedMessage id="sign-in.auth-started" values={{ email }} /> | ||
</p> | ||
{showNewsletterSignup && ( | ||
<p className={styles.newsletter}> | ||
Want Hubs news sent to your inbox?<br /> | ||
<a href="https://eepurl.com/gX_fH9" target="_blank" rel="noopener noreferrer"> | ||
Subscribe for updates | ||
</a> | ||
<p> | ||
<small> | ||
Want Hubs news sent to your inbox?<br /> | ||
<a href="https://eepurl.com/gX_fH9" target="_blank" rel="noopener noreferrer"> | ||
Subscribe for updates | ||
</a> | ||
</small> | ||
</p> | ||
)} | ||
<Button preset="cancel" onClick={onCancel}> | ||
|
@@ -111,8 +114,10 @@ WaitForVerification.propTypes = { | |
|
||
export function SignInComplete({ message, continueText, onContinue }) { | ||
return ( | ||
<Column center padding className={styles.modalContent}> | ||
<b>{message}</b> | ||
<Column center padding> | ||
<p> | ||
<b>{message}</b> | ||
</p> | ||
<p>{continueText}</p> | ||
<Button preset="green" onClick={onContinue}> | ||
Continue | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
import React from "react"; | ||
import { RadioInputField } from "./RadioInputField"; | ||
import { RadioInputField, RadioInputOption } from "./RadioInputField"; | ||
import { Column } from "../layout/Column"; | ||
|
||
export default { | ||
title: "RadioInputField" | ||
}; | ||
|
||
export const All = args => ( | ||
export const All = () => ( | ||
<Column padding> | ||
<RadioInputField {...args} /> | ||
<RadioInputField label="With Label" {...args} /> | ||
<RadioInputField label="Selected" {...args} value={2} /> | ||
<RadioInputField> | ||
<RadioInputOption value={1} label="Option 1" description="Test description for option 1" /> | ||
<RadioInputOption value={2} label="Option 2" description="Test description for option 2" /> | ||
<RadioInputOption value={3} label="Option 3" description="Test description for option 3" /> | ||
<RadioInputOption value={4} label="Option 4 (No Description)" /> | ||
</RadioInputField> | ||
<RadioInputField label="With Label"> | ||
<RadioInputOption value={1} label="Option 1" description="Test description for option 1" /> | ||
<RadioInputOption value={2} label="Option 2" description="Test description for option 2" /> | ||
<RadioInputOption value={3} label="Option 3" description="Test description for option 3" /> | ||
<RadioInputOption value={4} label="Option 4 (No Description)" /> | ||
</RadioInputField> | ||
<RadioInputField label="Selected"> | ||
<RadioInputOption value={1} label="Option 1" description="Test description for option 1" /> | ||
<RadioInputOption checked value={2} label="Option 2" description="Test description for option 2" /> | ||
<RadioInputOption value={3} label="Option 3" description="Test description for option 3" /> | ||
<RadioInputOption value={4} label="Option 4 (No Description)" /> | ||
</RadioInputField> | ||
</Column> | ||
); | ||
|
||
All.args = { | ||
options: [ | ||
{ id: "1", label: "Option 1", description: "Test description for option 1", value: 1 }, | ||
{ id: "2", label: "Option 2", description: "Test description for option 2", value: 2 }, | ||
{ id: "3", label: "Option 3", description: "Test description for option 3", value: 3 }, | ||
{ id: "4", label: "Option 4 (No Description)", value: 4 } | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.