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 Elevation #61017

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

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

### Enhancements

- `InputControl`: Add a password visibility toggle story ([#60898](https://github.com/WordPress/gutenberg/pull/60898)).
Expand Down
8 changes: 2 additions & 6 deletions packages/components/src/elevation/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Elevation

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

`Elevation` is a core component that renders shadow, using the component system's shadow system.

## Usage
Expand All @@ -12,7 +8,7 @@ The shadow effect is generated using the `value` prop.

```jsx
import {
__experimentalElevation as Elevation,
Elevation,
__experimentalSurface as Surface,
__experimentalText as Text,
} from '@wordpress/components';
Expand Down Expand Up @@ -75,7 +71,7 @@ Size of the shadow, based on the Style system's elevation system. The `value` de
In the example below, `isInteractive` is activated to give a better sense of depth.

```jsx
import { __experimentalElevation as Elevation } from '@wordpress/components';
import { Elevation } from '@wordpress/components';

function Example() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/elevation/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function UnconnectedElevation(
*
* ```jsx
* import {
* __experimentalElevation as Elevation,
* Elevation,
* __experimentalSurface as Surface,
* __experimentalText as Text,
* } from '@wordpress/components';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Elevation } from '..';

const meta: Meta< typeof Elevation > = {
component: Elevation,
title: 'Components (Experimental)/Elevation',
title: 'Components/Elevation',
argTypes: {
as: { control: { type: 'text' } },
borderRadius: { control: { type: 'text' } },
Expand Down
8 changes: 7 additions & 1 deletion packages/components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ export { default as Dropdown } from './dropdown';
export { default as __experimentalDropdownContentWrapper } from './dropdown/dropdown-content-wrapper';
export { default as DropdownMenu } from './dropdown-menu';
export { DuotoneSwatch, DuotonePicker } from './duotone-picker';
export { Elevation as __experimentalElevation } from './elevation';
export {
/**
* @deprecated Import `Elevation` instead.
*/
Elevation as __experimentalElevation,
Elevation,
} from './elevation';
export { default as ExternalLink } from './external-link';
export { Flex, FlexBlock, FlexItem } from './flex';
export { default as FocalPointPicker } from './focal-point-picker';
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',
'elevation',
];
const REDIRECTS = [
{
from: /\/components-deprecated-/,
Expand Down
Loading