-
Notifications
You must be signed in to change notification settings - Fork 1
Accessibility issues resolved #113
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
648c314
RA - changed main colour code to that of the dark hex for colour acce…
RhysMAdey 7ba6599
RA dark theme main colour now the same as light theme dark colour. da…
RhysMAdey f70a7f0
RA lighter blue changed so that breadcrumb has better contrast in lig…
RhysMAdey f31c698
RA prettier fix
RhysMAdey 71c70f9
RA - resolved accessibility errors
RhysMAdey 3f14e1f
RA resolving test fails
RhysMAdey a24b6a7
RA resolving prettier CI errors
RhysMAdey a57ec2d
RA removed unused import from themeing files
RhysMAdey e50725c
RA reverting type import to resolve pipeline
RhysMAdey 6ee94e4
RA created new DataBoxList wrapper component in order for dl tags to …
RhysMAdey 59c4461
RA lint fix ran
RhysMAdey ee34619
RA reverting DataBoxList changes
RhysMAdey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| import { createTheme, Theme } from "@mui/material/styles"; | ||
|
|
||
| import { mergeThemeOptions } from "./ThemeManager"; | ||
|
|
||
| import logoImageDark from "../public/diamond/logo-dark.svg"; | ||
| import logoImageLight from "../public/diamond/logo-light.svg"; | ||
| import logoShort from "../public/diamond/logo-short.svg"; | ||
|
|
||
| const dlsLogoBlue = "#202740"; | ||
| const dlsLogoYellow = "#facf07"; | ||
|
|
||
| const DiamondThemeOptions = mergeThemeOptions({ | ||
| logos: { | ||
| normal: { | ||
| src: logoImageDark, // Use the dark image for light backgrounds | ||
| srcDark: logoImageLight, // Use the light image for dark backgrounds | ||
| alt: "Diamond Light Source Logo", | ||
| width: "100", | ||
| }, | ||
| short: { | ||
| src: logoShort, | ||
| alt: "Diamond Light Source Logo", | ||
| width: "35", | ||
| }, | ||
| }, | ||
| colorSchemes: { | ||
| // https://zenoo.github.io/mui-theme-creator/ | ||
| light: { | ||
| palette: { | ||
| primary: { | ||
| main: dlsLogoBlue, | ||
| light: "#4C5266", // dark grey | ||
| dark: "#161B2C", // dark blue | ||
| contrastText: "#ffffff", // white | ||
| }, | ||
| secondary: { | ||
| main: dlsLogoYellow, | ||
| light: "#FBD838", // light yellow | ||
| dark: "#AF9004", // dark yellow | ||
| contrastText: "#000000", // black | ||
| }, | ||
| text: { | ||
| secondary: "#161B2C", | ||
| }, | ||
| }, | ||
| }, | ||
| dark: { | ||
| palette: { | ||
| primary: { | ||
| main: "#6175bd", //lightened version of {dlsLogoBlue} | ||
| light: "#8090CA", // lighter blue | ||
| dark: "#435184", // mid blue | ||
| contrastText: "#ffffff", // white | ||
| }, | ||
| secondary: { | ||
| main: dlsLogoYellow, | ||
| light: "#FBD838", // light yellow | ||
| dark: "#AF9004", // dark yellow | ||
| contrastText: "#000000", // black | ||
| }, | ||
| text: { | ||
| secondary: "#8090CA", | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| components: { | ||
| MuiButton: { | ||
| styleOverrides: { | ||
| root: ({ theme }: { theme: Theme }) => ({ | ||
| textTransform: "none", | ||
| "&.MuiButton-contained": {}, | ||
| "&.default": { | ||
| color: theme.palette.primary.contrastText, | ||
| backgroundColor: theme.palette.primary.dark, | ||
| "&:hover": { | ||
| backgroundImage: "linear-gradient(rgb(0 0 0/30%) 0 0)", | ||
| "&:disabled": { | ||
| backgroundColor: theme.palette.primary.light, | ||
| }, | ||
| }, | ||
| }, | ||
| "&.onBlue": { | ||
| color: theme.palette.secondary.light, | ||
| borderColor: theme.palette.secondary.light, | ||
| border: "1px solid", | ||
| fontSize: "0.875rem", | ||
| "&:hover": { | ||
| color: theme.palette.primary.dark, | ||
| backgroundColor: theme.palette.secondary.light, | ||
| }, | ||
| }, | ||
| }), | ||
| }, | ||
| }, | ||
| }, | ||
| }); | ||
|
|
||
| const DiamondTheme: Theme = createTheme(DiamondThemeOptions); | ||
|
|
||
| export { DiamondTheme, DiamondThemeOptions }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.