Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings: Fix dark mode for what's new page #23398

Merged
merged 3 commits into from
Jul 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix dark mode for CopyButton and WhatsNewFooter
kasperpeulen committed Jul 11, 2023
commit 86ad8fb0b7dc125c57e2d4351904bc988cd15585
12 changes: 8 additions & 4 deletions code/ui/manager/src/settings/whats_new.tsx
Original file line number Diff line number Diff line change
@@ -46,10 +46,13 @@ const ToggleNotificationButton = styled(IconButton)(({ theme }) => ({
margin: 0,
}));

const CopyButton = styled(Button)(() => ({
margin: 0,
padding: 0,
borderRadius: 0,
const CopyButton = styled(Button)(({ theme }) => ({
'&&': {
color: theme.color.defaultText,
margin: 0,
padding: 0,
borderRadius: 0,
},
}));

export const WhatsNewFooter = ({
@@ -107,6 +110,7 @@ const Iframe = styled.iframe<{ isLoaded: boolean }>(
padding: 0,
width: '100%',
height: 'calc(100% - 80px)',
background: 'white',
},
({ isLoaded }) => ({ visibility: isLoaded ? 'visible' : 'hidden' })
);