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

BED-4753: Added styling selectors to address sections in api explorer not working in dark/light mode #884

Merged
merged 5 commits into from
Sep 25, 2024
Merged
Changes from 2 commits
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
28 changes: 25 additions & 3 deletions cmd/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ export const Inner: React.FC = () => {
& .response-col_links,
& .opblock-description-wrapper > p,
& .btn-group > button,
& textarea,
& select,
urangel marked this conversation as resolved.
Show resolved Hide resolved
`]: {
color: theme.palette.color.primary,
},
'& .filter-container .operation-filter-input': {
backgroundColor: 'inherit',
['& input, & textarea, & select, & .models, & .filter-container .operation-filter-input']: {
backgroundColor: theme.palette.neutral.primary,
border: `1px solid ${theme.palette.grey[700]}`,

'&:hover': {
Expand All @@ -86,19 +88,39 @@ export const Inner: React.FC = () => {
outline: `1px solid ${theme.palette.color.links}`,
},
},
'& .models': {
urangel marked this conversation as resolved.
Show resolved Hide resolved
'& h4': {
borderBottomColor: theme.palette.grey[700],
},
'& span, & table': {
color: theme.palette.color.primary,
},
'& svg': {
fill: theme.palette.color.primary,
},
'& model-box': {
backgroundColor: theme.palette.neutral.primary,
},
},
'& .responses-inner': {
[`& h4, & h5`]: {
color: theme.palette.color.primary,
},
},
'& svg.arrow': {
'& svg': {
fill: theme.palette.color.primary,
},
'& .opblock-deprecated': {
'& .opblock-title_normal': {
color: theme.palette.color.primary,
},
},
'& .opblock-section-header': {
backgroundColor: theme.palette.neutral.primary,
'& h4, & .btn': {
color: theme.palette.color.primary,
},
},
},
},
},
Expand Down
Loading