Skip to content

Commit

Permalink
Fix heading levels and nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
o-jorgensen committed Sep 19, 2024
1 parent c4e1d79 commit edc7db0
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const GrossDepositionEnviromentGroup = ({
return (
<>
<Styled.Wrapper>
<Typography variant="h4">
<Typography variant="h4" as="h3">
Gross Depositional Environment (GDE)
</Typography>
<Table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export const OutcropAnalogueGroup = ({

return (
<Styled.Wrapper>
<Typography variant="h4">Outcrop Analogue</Typography>
<Typography variant="h4" as="h3">
Outcrop Analogue
</Typography>
<Table>
<Table.Head>
<Table.Row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export const StratigrapicGroups = ({

return (
<Styled.Wrapper>
<Typography variant="h4">Stratigraphic column</Typography>
<Typography variant="h4" as="h3">
Stratigraphic column
</Typography>

<Table>
<Table.Head>
Expand Down
4 changes: 3 additions & 1 deletion src/features/ModelView/DeleteButton/DeleteModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const DeleteModel = () => {

return (
<Styled.Wrapper>
<Typography variant="h3">Delete model</Typography>
<Typography variant="h3" as="h2">
Delete model
</Typography>
<Typography variant="body_long">
This will delete the model along with all related cases and results.
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export const ModelAreaCoordinates = ({
}) => {
return (
<Styled.Wrapper>
<Typography variant="h3">Model areas</Typography>
<Typography variant="h3" as="h2">
Model areas
</Typography>
<Typography variant="body_long">
You can define multiple areas for calculation in your model by entering
coordinates.
Expand Down
4 changes: 3 additions & 1 deletion src/features/ModelView/ModelFilesView/ModelFilesView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ export const ModelFilesView = () => {

return (
<Styled.TableWrapper>
<Typography variant="h3">Files</Typography>
<Typography variant="h3" as="h2">
Files
</Typography>
<Styled.FileTable>
<Table.Head>
<Table.Row className="table-row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ export const ModelMetadataView = ({

return (
<Styled.Wrapper>
<Typography variant="h3">Model metadata</Typography>
{!isAddUploading && (
<Styled.DescriptionMeta>
<>
Expand Down Expand Up @@ -310,6 +309,10 @@ export const ModelMetadataView = ({
</>
)}

<Typography variant="h3" as="h2">
Model metadata
</Typography>

<div>
<OutcropAnalogueGroup
modelIdParent={modelIdParent}
Expand Down
8 changes: 6 additions & 2 deletions src/features/ModelView/ModelNameFrame/ModelNameFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ export const ModelNameFrame = ({ model }: { model?: AnalogueModelDetail }) => {
return (
<Styled.NameFrame className="metadata-name-frame">
{model ? (
<Typography variant="h2">{model.name}</Typography>
<Typography variant="h2" as="h1">
{model.name}
</Typography>
) : (
<Typography variant="h2">Loading ....</Typography>
<Typography variant="h2" as="h1">
Loading ....
</Typography>
)}
</Styled.NameFrame>
);
Expand Down

0 comments on commit edc7db0

Please sign in to comment.