Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions ui/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { App } from './App';
import { theme } from './theme';
import reportWebVitals from './reportWebVitals';
import { ConfigurationDataContextProvider } from './contexts';
import './safari-fix.css';

const muiCache = createCache({
key: 'mui',
Expand Down
13 changes: 13 additions & 0 deletions ui/src/safari-fix.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* Safari-specific fixes for Material-UI TextField label rendering issue */
/* Fixes the "crossed with border" appearance on initial load */
/* The issue is Safari not rendering the notch gap correctly */

@supports (-webkit-hyphens: none) {
/* When label is shrunk (floating above the input), give it a background */
.MuiInputLabel-shrink {
background-color: white;
padding-left: 4px;
padding-right: 4px;
margin-left: -4px;
}
}