Skip to content

Commit c9ef6f4

Browse files
docs(accordion): move typography elements to docs only
1 parent 7d3562d commit c9ef6f4

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

components/accordion/stories/accordion.stories.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ WithForcedColors.parameters = {
149149
/**
150150
* Accordion items have a default width for each size, but a custom width can also be set to any
151151
* width that meets or exceeds the minimum width.
152+
*
153+
* This example also uses the body typography element with class `.spectrum-Body` for the
154+
* accordion item's content. If using typography, the t-shirt size of the typography element
155+
* may need to be adjusted to match the accordion item's font size. The body typography component
156+
* shown here is a size "S," in contrast with the the accordion's "M" size.
152157
*/
153158
export const CustomWidth = AccordionGroup.bind({});
154159
CustomWidth.tags = ["!dev"];

components/accordion/stories/accordion.test.js

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,20 @@ export const testsContent = new Map([
1616
[
1717
"Architecture",
1818
{
19-
content: Typography({
20-
semantics: "body",
21-
content: [
22-
"This is an example of text content within the content area that uses the spectrum-Body typography class on the paragraphs. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit.",
23-
Link({
24-
url: "https://www.adobe.com/creativecloud/plans.html",
25-
text: "Learn more about Adobe Creative Cloud plans and pricing.",
26-
}),
27-
],
28-
}),
19+
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.",
2920
isOpen: true,
3021
},
3122
],
3223
[
3324
"Nature",
3425
{
35-
content: Typography({
36-
semantics: "body",
37-
content: [
38-
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.",
39-
Link({
40-
url: "https://www.adobe.com/acrobat.html",
41-
text: "Learn more about Acrobat.",
42-
}),
43-
],
44-
}),
26+
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.",
4527
},
4628
],
4729
[
4830
"Illustrations",
4931
{
50-
content: "This is an example of text content within the content area that is not wrapped by any typography classes or elements. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit.",
51-
isOpen: true,
32+
content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eleifend est mollis ligula lobortis, tempus ultricies sapien lacinia. Nulla ut turpis velit. Sed finibus dapibus diam et sollicitudin. Phasellus in ipsum nec ante elementum congue eget in leo. Morbi eleifend justo non rutrum venenatis. Fusce cursus et lectus eu facilisis. Ut laoreet felis in magna dignissim feugiat.",
5233
},
5334
],
5435
[
@@ -80,9 +61,10 @@ export const longerContent = new Map([
8061
"Are Adobe products worth it?",
8162
{
8263
content: Typography({
64+
size: "s",
8365
semantics: "body",
8466
content: [
85-
"This is an example of text content within the content area that uses the spectrum-Body typography class on the paragraphs. Adobe makes some of the most widely used software applications in the world, many of which are industry standard.",
67+
"Adobe makes some of the most widely used software applications in the world, many of which are industry standard. Get started with free apps like Adobe Acrobat Reader, Aero, Fill & Sign, Photoshop Express, and Adobe Scan. Or consider Creative Cloud, with plans starting at just US$9.99/mo. Every Adobe Creative Cloud plan includes perks like free stock images and fonts, collaboration tools, and cloud storage as well as regular feature updates to deliver the latest technology.",
8668
Link({
8769
url: "https://www.adobe.com/creativecloud/plans.html",
8870
text: "Learn more about Adobe Creative Cloud plans and pricing.",
@@ -96,6 +78,7 @@ export const longerContent = new Map([
9678
"Which Adobe product is best for editing PDFs?",
9779
{
9880
content: Typography({
81+
size: "s",
9982
semantics: "body",
10083
content: [
10184
"You can edit PDFs with Adobe Acrobat, which is available in two editions: Standard and Pro. Acrobat Standard provides basic tools to create, edit, and sign PDFs on Windows devices. Acrobat Pro is the complete PDF solution with tools to edit, convert, and sign PDFs across web, mobile, and tablet, as well as on Windows and macOS computers. If you'd like to try before you buy, you can get a free 7-day trial of Acrobat Pro.",
@@ -110,14 +93,14 @@ export const longerContent = new Map([
11093
[
11194
"How many products does Adobe have?",
11295
{
113-
content: "This is an example of text content within the content area that is not wrapped by any typography classes or elements. Adobe offers nearly 100 products. Get creative with industry-standard apps like Adobe Photoshop, Illustrator InDesign, and Lightroom. Create, edit, and sign PDFs with Adobe Acrobat and Acrobat Sign. And deliver exceptional customer experiences with our marketing and commerce apps such as Adobe Experience Manager, Campaign, and Target.",
96+
content: "Adobe offers nearly 100 products. Get creative with industry-standard apps like Adobe Photoshop, Illustrator, InDesign, and Lightroom. Create, edit, and sign PDFs with Adobe Acrobat and Acrobat Sign. And deliver exceptional customer experiences with our marketing and commerce apps such as adobe experience manager, Campaign, and Target.",
11497
isOpen: true,
11598
},
11699
],
117100
[
118101
"What are the most popular Adobe products?",
119102
{
120-
content: "This is an example of text content within the content area that is not wrapped by any typography classes or elements. Adobe makes some of the most widely used software in the world, including popular apps like Acrobat Pro, Photoshop, Illustrator, InDesign, Lightroom, and Premiere Pro.",
103+
content: "Adobe makes some of the most widely used software in the world, including popular apps like Acrobat Pro, Photoshop, Illustrator, InDesign, Lightroom, and Premiere Pro.",
121104
},
122105
],
123106
]);

0 commit comments

Comments
 (0)