Skip to content

Commit

Permalink
Merge pull request #3113 from ONSdigital/EAR-2384-change-contrast-tex…
Browse files Browse the repository at this point in the history
…t-higlighter

EAR-2384-change-contrast-of-text-highlighter
  • Loading branch information
Farhanam76 authored May 8, 2024
2 parents 633395c + b1cfccf commit a968455
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion eq-author/src/components/RichTextEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ import PasteModal, {
preserveRichFormatting,
} from "components/modals/PasteModal";

import { colors } from "../../constants/theme";

const styleMap = (controls) => {
return {
BOLD: {
backgroundColor: controls.highlight && "#cbe2c8",
backgroundColor: controls.highlight && colors.neonYellow,
fontWeight: controls.bold && "bold",
},
};
Expand Down
4 changes: 3 additions & 1 deletion eq-author/src/components/preview/elements/PageTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import styled from "styled-components";

import Error from "components/preview/Error";

import { colors } from "../../../constants/theme";

const Title = styled.h1`
font-size: 1.4em;
margin: 0 0 1em;
word-wrap: break-word;
strong {
background-color: #dce5b0;
background-color: ${colors.neonYellow};
padding: 0 0.125em;
font-style: normal;
}
Expand Down

0 comments on commit a968455

Please sign in to comment.