Fix wrapping on logo title

- remove beta pill
This commit is contained in:
Vim USDS 2022-09-16 13:37:23 -07:00
parent 54c41b02a9
commit f5f4330919
12 changed files with 16 additions and 124 deletions

View file

@ -18,22 +18,8 @@
@include u-display("flex");
@include u-flex-direction("column");
@include typeset("sans", 8, 3);
}
.title2BetaPill {
@include u-display("flex");
}
.betaPill {
@include u-display("inline-block");
@include u-bg("yellow-20v");
@include u-radius(1);
@include u-padding-left(2);
@include u-padding-right(2);
@include u-padding-top('05');
@include u-margin-left(1);
@include u-font("body", "2xs");
@include u-text('bold')
max-width: 270px;
min-width: 218px;
}
.navLinks {

View file

@ -36,7 +36,6 @@ const J40Header = () => {
// Logo text
const logoLine1 = intl.formatMessage(COMMON_COPY.HEADER.TITLE_LINE_1);
const logoLine2 = intl.formatMessage(COMMON_COPY.HEADER.TITLE_LINE_2);
/**
* State variable to control the toggling of mobile menu button
@ -203,17 +202,13 @@ const J40Header = () => {
{/* Logo */}
<Grid col={1}>
<img className={styles.logo} src={siteLogo} alt={`${logoLine1} ${logoLine2}`} />
<img className={styles.logo} src={siteLogo} alt={`${logoLine1}`} />
</Grid>
{/* Logo Title */}
<Grid col={6}>
<div className={styles.logoTitle}>
<div>{logoLine1}</div>
<div className={styles.title2BetaPill}>
<div> {logoLine2} </div>
<div className={styles.betaPill}>BETA</div>
</div>
{logoLine1}
</div>
</Grid>

View file

@ -194,17 +194,7 @@ exports[`rendering of the J40Header checks if component renders 1`] = `
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -101,13 +101,8 @@ export const ALERTS = {
export const HEADER = defineMessages({
TITLE_LINE_1: {
id: 'common.pages.header.title.line1',
defaultMessage: `Climate and Economic Justice`,
description: 'Navigate to the about page. This is Title in nav header line 1 of 2',
},
TITLE_LINE_2: {
id: 'common.pages.header.title.line2',
defaultMessage: `Screening Tool`,
description: 'Navigate to the about page. This is Title in nav header line 2 of 2',
defaultMessage: `Climate and Economic Justice Screening Tool`,
description: 'Navigate to the about page. This is Title in nav header',
},
ABOUT: {
id: 'common.pages.header.about',

View file

@ -224,12 +224,8 @@
"description": "Navigate to the about page. This is Header navigate item to the public eng page"
},
"common.pages.header.title.line1": {
"defaultMessage": "Climate and Economic Justice",
"description": "Navigate to the about page. This is Title in nav header line 1 of 2"
},
"common.pages.header.title.line2": {
"defaultMessage": "Screening Tool",
"description": "Navigate to the about page. This is Title in nav header line 2 of 2"
"defaultMessage": "Climate and Economic Justice Screening Tool",
"description": "Navigate to the about page. This is Title in nav header"
},
"common.pages.header.tsd": {
"defaultMessage": "Technical Support Document",

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div

View file

@ -194,17 +194,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
data-testid="grid"
>
<div>
<div>
Climate and Economic Justice
</div>
<div>
<div>
Screening Tool
</div>
<div>
BETA
</div>
</div>
Climate and Economic Justice Screening Tool
</div>
</div>
<div