Skip to content

Commit

Permalink
import classes, update defualtContent
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed Nov 8, 2024
1 parent 991998f commit 7e56a65
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
32 changes: 14 additions & 18 deletions editor.planx.uk/src/@planx/components/Feedback/Public/Public.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ const FeedbackComponent = (props: PublicProps<Feedback>): FCReturn => {
{props.ratingQuestion && (
<InputLabel
label={
<Typography component="span" fontWeight="700">
<ReactMarkdownOrHtml
source={props.ratingQuestion}
id={"RATING_QUESTION"}
openLinksOnNewTab
/>
</Typography>
<ReactMarkdownOrHtml
source={props.ratingQuestion}
id={"RATING_QUESTION"}
openLinksOnNewTab
/>
}
/>
)}
Expand All @@ -105,10 +103,10 @@ const FeedbackComponent = (props: PublicProps<Feedback>): FCReturn => {
onChange={handleFeedbackChange}
aria-label="feedback score"
>
<Grid
container
columnSpacing={2}
component="fieldset"
<Grid
container
columnSpacing={2}
component="fieldset"
direction={{ xs: "column", formWrap: "row" }}
>
<FaceBox
Expand Down Expand Up @@ -147,13 +145,11 @@ const FeedbackComponent = (props: PublicProps<Feedback>): FCReturn => {
{props.freeformQuestion && (
<InputLabel
label={
<Typography component="span" fontWeight="700">
<ReactMarkdownOrHtml
source={props.freeformQuestion}
id={"RATING_QUESTION"}
openLinksOnNewTab
/>
</Typography>
<ReactMarkdownOrHtml
source={props.freeformQuestion}
id={"RATING_QUESTION"}
openLinksOnNewTab
/>
}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Box from "@mui/material/Box";
import Grid from "@mui/material/Grid";
import ToggleButton from "@mui/material/ToggleButton";
import ToggleButton, { toggleButtonClasses } from "@mui/material/ToggleButton";
import Typography from "@mui/material/Typography";
import React, { ReactElement } from "react";

Expand Down Expand Up @@ -28,7 +28,7 @@ export const FaceBox = ({
px: 0,
width: "100%",
textTransform: "none",
"&[aria-pressed='true'] > div": {
[`&.${toggleButtonClasses.selected}`]: {
borderColor: (theme) => theme.palette.primary.dark,
background: (theme) => theme.palette.background.paper,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ import { Feedback } from "../model";

export const defaultContent: Feedback = {
title: "Tell us what you think",
freeformQuestion: "Please tell us more about your experience.",
freeformQuestion:
"<strong>Please tell us more about your experience.</strong>",

ratingQuestion: "How would you rate your experience with this service?",
ratingQuestion:
"<strong>How would you rate your experience with this service?</strong>",

description: `This service is a work in progress, any feedback you share about your experience will help us to improve it.
<br>
Expand Down

0 comments on commit 7e56a65

Please sign in to comment.