diff --git a/packages/clay-panel/docs/markup-panel.md b/packages/clay-panel/docs/markup-panel.md index 5206cc694c..cd7eee6b67 100644 --- a/packages/clay-panel/docs/markup-panel.md +++ b/packages/clay-panel/docs/markup-panel.md @@ -21,7 +21,7 @@ mainTabURL: 'docs/components/panel.html' ## Basic Usage(#css-basic-usage)
-
+
Title
@@ -32,7 +32,7 @@ mainTabURL: 'docs/components/panel.html'
```html -
+
Title
@@ -45,7 +45,7 @@ mainTabURL: 'docs/components/panel.html' ### Secondary(#css-panel-secondary)
-
+
Title
@@ -55,7 +55,7 @@ mainTabURL: 'docs/components/panel.html'
```html -
+
Title
@@ -67,7 +67,7 @@ mainTabURL: 'docs/components/panel.html' ### Unstyled(#css-panel-unstyled)
-
+
Title
@@ -77,7 +77,7 @@ mainTabURL: 'docs/components/panel.html'
```html -
+
Title
@@ -95,14 +95,14 @@ Collapsable panels provide you with the ability to expand and collapse content a
-
+
-
+
Header!
Body!
@@ -135,14 +135,13 @@ Collapsable panels provide you with the ability to expand and collapse content a
```html -
+
-
+
Header!
Body!
@@ -175,9 +174,9 @@ Collapsable panels provide you with the ability to expand and collapse content a Grouped panels provide you with the ability of making accordion-like elements with multiple collapsable panels.
-
-
- -
+
Here is some content inside for number One
-
- -
+
Here is some content inside for number Two
-
- -
+
Here is some content inside for number Three
@@ -234,15 +233,14 @@ Grouped panels provide you with the ability of making accordion-like elements wi
```html -
-
+
+
-
+
Here is some content inside for number One
-
+
-
+
Here is some content inside for number Two
-
+
-
+
Here is some content inside for number Three
@@ -358,9 +342,9 @@ Sometimes you might want to place a panel inside of a card or a sheet, in that c

Sheet Title

-
-
- -
+
Here is some content inside for number One
-
- -
+
Here is some content inside for number Two
-
- -
+
Here is some content inside for number Three
@@ -422,19 +406,14 @@ Sometimes you might want to place a panel inside of a card or a sheet, in that c

Sheet Title

-
-
+
+
-
+
Here is some content inside for number One
-
+
-
+
Here is some content inside for number Two
-
+
-
+
Here is some content inside for number Three
@@ -559,8 +524,8 @@ Sometimes you might want to place a panel inside of a card or a sheet, in that c Sometimes you want to have some custom content that's not a string or a number in your title, that's where `ClayPanel.Title` comes in handy. It allows you to add custom content to the title of the panel as seen in this example using `ClayLabels`.
-
- -
+
Body!
```html -
+
-
+
Body!
diff --git a/packages/clay-panel/src/Group.tsx b/packages/clay-panel/src/Group.tsx index 3e9e78751c..ef81ffaebf 100644 --- a/packages/clay-panel/src/Group.tsx +++ b/packages/clay-panel/src/Group.tsx @@ -50,7 +50,6 @@ const ClayPanelGroup = ({ return (
{children}
diff --git a/packages/clay-panel/src/__tests__/__snapshots__/index.tsx.snap b/packages/clay-panel/src/__tests__/__snapshots__/index.tsx.snap index a13e01bfbd..d0de32532c 100644 --- a/packages/clay-panel/src/__tests__/__snapshots__/index.tsx.snap +++ b/packages/clay-panel/src/__tests__/__snapshots__/index.tsx.snap @@ -4,7 +4,6 @@ exports[`ClayPanel renders 1`] = `
{!collapsable && ( <> @@ -135,6 +137,7 @@ function ClayPanel({ {collapsable && ( <> setInternalExpanded(!internalExpanded)} - role="tab" > {displayTitle && (React.isValidElement(displayTitle) ? ( @@ -178,6 +180,7 @@ function ClayPanel({ setElementFullHeight(element) @@ -201,7 +205,7 @@ function ClayPanel({ onExiting={(element) => { element.style.height = ''; }} - role="tabpanel" + role="region" timeout={!prefersReducedMotion ? 250 : 0} >
{children}