Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components: Assess stabilization of Scrollable #61063

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- `Scrollable`: Remove "experimental" designation ([#61063](https://github.com/WordPress/gutenberg/pull/61063)).

### Enhancements

- `InputControl`: Add a password visibility toggle story ([#60898](https://github.com/WordPress/gutenberg/pull/60898)).
Expand Down
16 changes: 14 additions & 2 deletions packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,20 @@ export { default as SearchControl } from './search-control';
export { default as SelectControl } from './select-control';
export { default as Snackbar } from './snackbar';
export { default as SnackbarList } from './snackbar/list';
export { Spacer as __experimentalSpacer } from './spacer';
export { Scrollable as __experimentalScrollable } from './scrollable';
export {
/**
* @deprecated Import `Spacer` instead.
*/
Spacer as __experimentalSpacer,
Spacer,
} from './spacer';
export {
/**
* @deprecated Import `Scrollable` instead.
*/
Scrollable as __experimentalScrollable,
Scrollable,
} from './scrollable';
export { default as Spinner } from './spinner';
export { Surface as __experimentalSurface } from './surface';
export { default as TabPanel } from './tab-panel';
Expand Down
6 changes: 1 addition & 5 deletions packages/components/src/scrollable/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# Scrollable

<div class="callout callout-alert">
This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.
</div>

`Scrollable` is a layout component that content in a scrollable container.

## Usage

```jsx
import { __experimentalScrollable as Scrollable } from '@wordpress/components';
import { Scrollable } from '@wordpress/components';

function Example() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/scrollable/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function UnconnectedScrollable(
* `Scrollable` is a layout component that content in a scrollable container.
*
* ```jsx
* import { __experimentalScrollable as Scrollable } from `@wordpress/components`;
* import { Scrollable } from `@wordpress/components`;
*
* function Example() {
* return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Scrollable } from '..';

const meta: Meta< typeof Scrollable > = {
component: Scrollable,
title: 'Components (Experimental)/Scrollable',
title: 'Components/Scrollable',
argTypes: {
as: {
control: { type: 'text' },
Expand Down
5 changes: 4 additions & 1 deletion storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<script>
( function redirectIfStoryMoved() {
const PREVIOUSLY_EXPERIMENTAL_COMPONENTS = [ 'navigation' ];
const PREVIOUSLY_EXPERIMENTAL_COMPONENTS = [
'navigation',
'scrollable',
];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down
Loading