Skip to content

Commit 255ac7e

Browse files
authored
fix: styling of cookie preferences button (#2214)
1 parent 7da7780 commit 255ac7e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const config: Config = {
120120
href: "https://www.ory.sh/contact/",
121121
},
122122
{
123-
html: `<button class="footer__link-item" onClick="window.__showOryConsentDialog()">Consent Preferences</button>`,
123+
html: `<button onClick="window.__showOryConsentDialog()">Consent Preferences</button>`,
124124
},
125125
] satisfies Preset.ThemeConfig["footer"]["links"],
126126
logo: {

src/css/theme.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,19 @@ svg[class*="iconExternalLink"] {
147147
.config-editor p {
148148
margin: unset;
149149
}
150+
151+
.footer__link-item:hover {
152+
color: unset;
153+
}
154+
.footer__link-item button {
155+
background-color: transparent;
156+
border: none;
157+
color: inherit;
158+
cursor: pointer;
159+
font: inherit;
160+
padding: 0;
161+
}
162+
163+
.footer__link-item button:hover {
164+
text-decoration: underline;
165+
}

0 commit comments

Comments
 (0)