Skip to content

Commit 3014b0e

Browse files
committed
add style for blockquote
1 parent a6874ac commit 3014b0e

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

packages/dev/s2-docs/pages/react-aria/Table.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,13 @@ See below for the full definition of the `User` and the `Table` tester.
795795

796796
### Testing FAQ
797797

798-
- When using the test utils, what if a certain interaction errors or doesn't seem to result in the expected state?
798+
> When using the test utils, what if a certain interaction errors or doesn't seem to result in the expected state?
799799
800800
In cases like this, first double check your test setup and make sure that your test is rendering your table in its expected
801801
state before the test util interaction call. If everything looks correct, you can always fall back to simulating interactions manually,
802802
and using the test util to query your table's state post interaction.
803803

804-
- The tester doesn't offer a specific interaction flow, what should I do?
804+
> The tester doesn't offer a specific interaction flow, what should I do?
805805
806806
Whenever the table tester queries its rows/cells/etc or triggers a user flow, it does so against the current state of the table. Therefore the table test can be used alongside
807807
whatever simulated user flow you add.

packages/dev/s2-docs/src/Layout.tsx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ const components = {
2727
p: ({children, ...props}) => <p {...props} className={style({font: {default: 'body', lg: 'body-lg'}, marginY: 24})}>{children}</p>,
2828
ul: (props) => <ul {...props} />,
2929
li: ({children, ...props}) => <li {...props} className={style({font: {default: 'body', lg: 'body-lg'}, marginY: 0})}>{children}</li>,
30+
blockquote: ({children, ...props}) => (
31+
<blockquote
32+
{...props}
33+
className={style({
34+
borderStartWidth: 4,
35+
borderEndWidth: 0,
36+
borderTopWidth: 0,
37+
borderBottomWidth: 0,
38+
borderStyle: 'solid',
39+
borderColor: 'gray-400',
40+
paddingStart: 12,
41+
font: {default: 'body', lg: 'body-lg'},
42+
margin: 'unset'
43+
})}>
44+
{children}
45+
</blockquote>
46+
),
3047
Figure: (props) => <figure {...props} className={style({display: 'flex', flexDirection: 'column', alignItems: 'center', marginY: 32, marginX: 0})} />,
3148
Caption: (props) => <figcaption {...props} className={style({font: 'body-sm'})} />,
3249
CodeBlock: CodeBlock,
@@ -52,14 +69,14 @@ const getTitle = (currentPage: Page): string => {
5269
if (explicitTitle && explicitTitle !== currentPage.tableOfContents?.[0]?.title && explicitTitle !== currentPage.name) {
5370
return explicitTitle as string;
5471
}
55-
72+
5673
let library = getLibraryLabel(getLibraryFromPage(currentPage));
5774
const pageTitle = currentPage.tableOfContents?.[0]?.title ?? currentPage.name;
58-
75+
5976
if (currentPage.name === 'index.html' || currentPage.name.endsWith('/index.html')) {
6077
return library || 'React Spectrum';
6178
}
62-
79+
6380
return library ? `${pageTitle} | ${library}` : pageTitle;
6481
};
6582

0 commit comments

Comments
 (0)