Skip to content

Commit b028c9f

Browse files
committed
fix: styles for manual consent opt out
1 parent f7cff20 commit b028c9f

File tree

4 files changed

+33
-15
lines changed

4 files changed

+33
-15
lines changed

packages/component-header-footer/src/footer/components/Legal/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ const Legal = () => {
8989
>
9090
Privacy
9191
</a>
92-
<button
93-
type="button"
94-
id="manualConsentoptout"
95-
className="nav-link text-gray-5 text-align-right"
96-
>
92+
<button type="button" id="manualConsentoptout">
9793
Manage my privacy settings
9894
</button>
9995
</nav>

packages/component-header-footer/src/footer/index.styles.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const StyledFooter = styled.footer`
3232
a:focus,
3333
button:focus {
3434
outline: none;
35-
box-shadow: 0 0 0 2px var(--color-base-white), 0 0 0 4px var(--color-base-grey-7) !important;
35+
box-shadow: 0 0 0 2px var(--color-base-white),
36+
0 0 0 4px var(--color-base-grey-7) !important;
3637
-webkit-tap-highlight-color: transparent;
3738
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
3839
}

packages/unity-bootstrap-theme/src/scss/extends/_globalfooter.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,24 @@ footer {
350350
@include nav-to-grid;
351351
}
352352
}
353+
354+
/*------------------------------------------------------------------
355+
8. Footer Colophon - Cookie Consent
356+
--------------------------------------------------------------------*/
357+
.footer-legal-links,
358+
.footer-menu,
359+
.nav {
360+
&.colophon #manualConsentoptout, #manualConsentoptout {
361+
color: $uds-color-base-gray-5;
362+
border: none;
363+
background-color: transparent;
364+
width: auto;
365+
cursor: pointer;
366+
padding: 0;
367+
text-align: right;
368+
justify-self: end;
369+
&:hover {
370+
text-decoration: underline;
371+
}
372+
}
373+
}

packages/unity-bootstrap-theme/stories/organisms/global-footer/global-footer.templates.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export const GlobalElementsOnly = () => (
137137
Privacy
138138
</a>
139139
<button
140+
type="button"
140141
id="manualConsentoptout"
141-
className="nav-link text-gray-5 text-align-right"
142142
>
143143
Manage my privacy settings
144144
</button>
@@ -373,8 +373,8 @@ export const ZeroColumns = () => (
373373
Privacy
374374
</a>
375375
<button
376+
type="button"
376377
id="manualConsentoptout"
377-
className="nav-link text-gray-5 text-align-right"
378378
>
379379
Manage my privacy settings
380380
</button>
@@ -629,8 +629,8 @@ export const OneColumn = () => (
629629
Privacy
630630
</a>
631631
<button
632+
type="button"
632633
id="manualConsentoptout"
633-
className="nav-link text-gray-5 text-align-right"
634634
>
635635
Manage my privacy settings
636636
</button>
@@ -796,8 +796,8 @@ export const OneColumnNoLogoOrSocial = () => (
796796
Privacy
797797
</a>
798798
<button
799+
type="button"
799800
id="manualConsentoptout"
800-
className="nav-link text-gray-5 text-align-right"
801801
>
802802
Manage my privacy settings
803803
</button>
@@ -1097,8 +1097,8 @@ export const TwoColumns = () => (
10971097
Privacy
10981098
</a>
10991099
<button
1100+
type="button"
11001101
id="manualConsentoptout"
1101-
className="nav-link text-gray-5 text-align-right"
11021102
>
11031103
Manage my privacy settings
11041104
</button>
@@ -1446,8 +1446,8 @@ export const ThreeColumns = () => (
14461446
Privacy
14471447
</a>
14481448
<button
1449+
type="button"
14491450
id="manualConsentoptout"
1450-
className="nav-link text-gray-5 text-align-right"
14511451
>
14521452
Manage my privacy settings
14531453
</button>
@@ -1843,8 +1843,8 @@ export const FourColumns = () => (
18431843
Privacy
18441844
</a>
18451845
<button
1846+
type="button"
18461847
id="manualConsentoptout"
1847-
className="nav-link text-gray-5 text-align-right"
18481848
>
18491849
Manage my privacy settings
18501850
</button>
@@ -2288,8 +2288,8 @@ export const FiveColumns = () => (
22882288
Privacy
22892289
</a>
22902290
<button
2291+
type="button"
22912292
id="manualConsentoptout"
2292-
className="nav-link text-gray-5 text-align-right"
22932293
>
22942294
Manage my privacy settings
22952295
</button>
@@ -2776,8 +2776,8 @@ export const SixColumns = () => (
27762776
Privacy
27772777
</a>
27782778
<button
2779+
type="button"
27792780
id="manualConsentoptout"
2780-
className="nav-link text-gray-5 text-align-right"
27812781
>
27822782
Manage my privacy settings
27832783
</button>

0 commit comments

Comments
 (0)