-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quote component accessibility (#952)
* on project pages, add separate query for articles * create new ImageVerticalLineContent component for new oas article page * create function to support multiple layouts for a single AEM fragment * change new component name * add support for spans in text-node-renderer * modify article queries to support new composite text content fragment * create new QuoteVerticalLineContent component and modify BasicTextWithImage to support field changes to model * add new comopnent to FragmentRender * add styles for new component * increase border-radius
- Loading branch information
Showing
6 changed files
with
130 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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
32 changes: 32 additions & 0 deletions
32
components/fragment_renderer/fragment_components/QuoteVerticalLineContent.js
This file contains 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,32 @@ | ||
import TextRender from "../../text_node_renderer/TextRender"; | ||
|
||
export default function QuoteVerticalLineContent(props) { | ||
return ( | ||
<div className="layout-container grid grid-cols-12 gap-x-4 my-12"> | ||
<div className="col-span-12 xl:col-span-3"> | ||
<div className="speech-bubble"> | ||
<div className="speech-bubble-top"> | ||
<blockquote className="speech-bubble-quote"> | ||
<TextRender | ||
data={ | ||
props.locale === "en" | ||
? props.fragmentData.scLabContent[0].scContentEn.json | ||
: props.fragmentData.scLabContent[0].scContentFr.json | ||
} | ||
/> | ||
</blockquote> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="col-span-12 lg:col-span-7 xl:col-span-4 xxl:-ml-14 h-fit p-5 border-l-4 border-multi-blue-blue60f"> | ||
<TextRender | ||
data={ | ||
props.locale === "en" | ||
? props.fragmentData.scLabContent[1].scContentEn.json | ||
: props.fragmentData.scLabContent[1].scContentFr.json | ||
} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains 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 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 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