Skip to content

Commit

Permalink
Merge pull request #9481 from CitizenLabDotCo/add-phase-description-i…
Browse files Browse the repository at this point in the history
…d-weglot

Add ID for Weglot CSS selector phase description
  • Loading branch information
amanda-anderson authored Nov 22, 2024
2 parents 8d13595 + 395f319 commit 5d94d3f
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import React from 'react';

import { defaultCardStyle, media } from '@citizenlab/cl2-component-library';
import {
Box,
defaultCardStyle,
media,
} from '@citizenlab/cl2-component-library';
import { isEmpty } from 'lodash-es';
import styled from 'styled-components';

Expand Down Expand Up @@ -98,7 +102,7 @@ const PhaseDescription = ({ projectId, selectedPhaseId }: Props) => {
{/* TODO: Fix this the next time the file is edited. */}
{/* eslint-disable-next-line @typescript-eslint/no-unnecessary-condition */}
{phase && descriptionHasContent && (
<>
<Box id={`phase-description-${selectedPhaseId}`}>
<ReadMoreWrapper
fontSize="base"
contentId="phase-description"
Expand All @@ -110,7 +114,7 @@ const PhaseDescription = ({ projectId, selectedPhaseId }: Props) => {
{!isNilOrError(phaseFiles) && !isEmpty(phaseFiles) && (
<StyledFileAttachments files={phaseFiles.data} />
)}
</>
</Box>
)}
{isActivePhase && (
// TODO: Fix this the next time the file is edited.
Expand Down

0 comments on commit 5d94d3f

Please sign in to comment.