Skip to content
Open
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
15 changes: 13 additions & 2 deletions src/components/CustomTheme.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import { ThemeProvider } from "@mui/material";
import { createTheme } from "@mui/material/styles";
import { CustomThemeBase } from "openstack-uicore-foundation/lib/utils/theme";
import PropTypes from "prop-types";

const theme = createTheme({
const theme = createTheme(CustomThemeBase, {
palette: {
primary: {
main: "#2196F3",
Expand Down Expand Up @@ -77,6 +78,10 @@ const theme = createTheme({
styleOverrides: {
root: ({ ownerState }) => ({
fontWeight: 500,
boxShadow: "none",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like these should go in uicore too, I think you need to ask which of the changes are needed for ALL APPs and which ones only for admin. I guess all of the are for all apps, right @smarcet ?

"&:hover": { boxShadow: "none" },
"&:active": { boxShadow: "none" },
"&:focus": { boxShadow: "none" },
...(ownerState.size === "small" && {
fontSize: "13px",
lineHeight: "18px",
Expand Down Expand Up @@ -126,8 +131,14 @@ const theme = createTheme({
root: {
fontSize: "12px"
},
message: {
fontWeight: "normal"
},
standardInfo: ({ theme }) => ({
color: theme.palette.primary.dark
color: theme.palette.primary.dark,
"& .MuiAlert-message": {
color: theme.palette.primary.dark
}
})
}
}
Expand Down
6 changes: 1 addition & 5 deletions src/components/mui/custom-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ const CustomAlert = ({ severity = "info", message = "", hideIcon = false }) => (
<Alert
severity={severity}
icon={!hideIcon}
sx={{
justifyContent: "start",
alignItems: "center",
mb: 2
}}
sx={{ justifyContent: "start", alignItems: "center", mb: 2 }}
>
{message}
</Alert>
Expand Down
7 changes: 5 additions & 2 deletions src/pages/sponsors/sponsor-forms-list-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,15 @@ const SponsorFormsListPage = ({
<Checkbox
checked={showArchived}
onChange={handleShowArchivedForms}
inputProps={{
"aria-label": T.translate("sponsor_forms.show_archived")
slotProps={{
input: {
"aria-label": T.translate("sponsor_forms.show_archived")
}
}}
/>
}
label={T.translate("sponsor_forms.show_archived")}
sx={{ whiteSpace: "nowrap", mb: 0 }}
/>
</FormGroup>
</Grid2>
Expand Down
Loading