Skip to content

Commit b366c96

Browse files
committed
fix(Masthead): revert icons size
1 parent 4fb70b6 commit b366c96

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/components/Masthead/masthead.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ a:hover {
2323
}
2424

2525
.sgds-masthead {
26-
line-height: 1rem;
27-
font-size: 0.75rem;
26+
line-height: 1.25rem;
27+
font-size: 0.875rem;
2828
font-family: "Inter", system-ui, sans-serif;
2929
}
3030

@@ -59,7 +59,7 @@ a:hover {
5959
display: flex;
6060
flex-wrap: wrap;
6161
align-items: center;
62-
gap: 0 0.25rem;
62+
gap: 0 0.75rem;
6363
}
6464

6565
.sgds-masthead-identify-icon {
@@ -132,8 +132,8 @@ a:hover {
132132
}
133133

134134
.banner-icon, .banner-icon-inline {
135-
width: 16px;
136-
height: 16px;
135+
width: 20px;
136+
height: 20px;
137137
}
138138

139139
.banner-icon path,

src/components/Masthead/sgds-masthead.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class SgdsMasthead extends SgdsElement {
3030

3131
render() {
3232
return html`
33-
<div id="sgds-masthead" class="sgds-masthead" aria-label="A Singapore Government Agency Website." role="banner">
33+
<div id="sgds-masthead" class="sgds-masthead" aria-label="A Singapore Government Agency Website" role="banner">
3434
<div class="banner">
3535
<div class="container">
3636
<div class="masthead-layout">
@@ -68,7 +68,7 @@ export class SgdsMasthead extends SgdsElement {
6868
/>
6969
</svg>
7070
<div class="masthead-text-layout">
71-
<span>A Singapore Government Agency Website.</span>
71+
<span>A Singapore Government Agency Website</span>
7272
<div
7373
class="sgds-masthead-button"
7474
id="sgds-masthead-identify"
@@ -111,9 +111,9 @@ export class SgdsMasthead extends SgdsElement {
111111
<div class="icon">
112112
<svg
113113
xmlns="http://www.w3.org/2000/svg"
114-
width="16"
115-
height="16"
116-
viewBox="0 0 16 16"
114+
width="20"
115+
height="20"
116+
viewBox="0 0 20 20"
117117
fill="none"
118118
class="banner-icon"
119119
>
@@ -141,9 +141,9 @@ export class SgdsMasthead extends SgdsElement {
141141
<div class="icon">
142142
<svg
143143
xmlns="http://www.w3.org/2000/svg"
144-
width="17"
145-
height="16"
146-
viewBox="0 0 17 16"
144+
width="20"
145+
height="20"
146+
viewBox="0 0 20 20"
147147
fill="none"
148148
class="banner-icon"
149149
>
@@ -160,16 +160,16 @@ export class SgdsMasthead extends SgdsElement {
160160
<article>
161161
Look for a lock (<svg
162162
xmlns="http://www.w3.org/2000/svg"
163-
width="16"
164-
height="16"
165-
viewBox="0 0 16 16"
163+
width="20"
164+
height="20"
165+
viewBox="0 0 20 20"
166166
fill="none"
167167
class="banner-icon-inline"
168168
>
169169
<path
170170
fill-rule="evenodd"
171171
clip-rule="evenodd"
172-
d="M4.66699 6.66683H4.33366C3.41318 6.66683 2.66699 7.41302 2.66699 8.3335V13.0002C2.66699 13.9206 3.41318 14.6668 4.33366 14.6668H11.667C12.5875 14.6668 13.3337 13.9206 13.3337 13.0002V8.3335C13.3337 7.41302 12.5875 6.66683 11.667 6.66683H11.3337V4.66683C11.3337 2.82588 9.84127 1.3335 8.00033 1.3335C6.15938 1.3335 4.66699 2.82588 4.66699 4.66683V6.66683ZM6.00033 6.66683H10.0003V4.66683C10.0003 3.56226 9.10489 2.66683 8.00033 2.66683C6.89576 2.66683 6.00033 3.56226 6.00033 4.66683V6.66683Z"
172+
d="M5.83331 8.33317H5.41665C4.26605 8.33317 3.33331 9.26591 3.33331 10.4165V16.2498C3.33331 17.4004 4.26605 18.3332 5.41665 18.3332H14.5833C15.7339 18.3332 16.6666 17.4004 16.6666 16.2498V10.4165C16.6666 9.26591 15.7339 8.33317 14.5833 8.33317H14.1666V5.83317C14.1666 3.53198 12.3012 1.6665 9.99998 1.6665C7.69879 1.6665 5.83331 3.53198 5.83331 5.83317V8.33317ZM7.49998 8.33317H12.5V5.83317C12.5 4.45246 11.3807 3.33317 9.99998 3.33317C8.61927 3.33317 7.49998 4.45246 7.49998 5.83317V8.33317Z"
173173
fill="currentColor"
174174
/></svg
175175
>) or https:// as an added precaution. Share sensitive information only on official, secure

test/masthead.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe("sgds-masthead", () => {
99
assert.shadowDom.equal(
1010
el,
1111
`
12-
<div id="sgds-masthead" class="sgds-masthead" aria-label="A Singapore Government Agency Website." role="banner">
12+
<div id="sgds-masthead" class="sgds-masthead" aria-label="A Singapore Government Agency Website" role="banner">
1313
<div class="banner">
1414
<div class="container">
1515
<div class="masthead-layout">
@@ -47,7 +47,7 @@ describe("sgds-masthead", () => {
4747
/>
4848
</svg>
4949
<div class="masthead-text-layout">
50-
<span>A Singapore Government Agency Website.</span>
50+
<span>A Singapore Government Agency Website</span>
5151
<div
5252
class="sgds-masthead-button"
5353
id="sgds-masthead-identify"

0 commit comments

Comments
 (0)