-);
-
-Skeleton.storyName = 'skeleton';
-
-Skeleton.parameters = {
- info: {
- text: `
- Placeholder skeleton state to use when content is loading.
- `,
- },
-};
+export const Skeleton = () => ;
diff --git a/packages/react/src/components/NumberInput/NumberInput.mdx b/packages/react/src/components/NumberInput/NumberInput.mdx
index abaf622095f2..901727f39579 100644
--- a/packages/react/src/components/NumberInput/NumberInput.mdx
+++ b/packages/react/src/components/NumberInput/NumberInput.mdx
@@ -1,4 +1,4 @@
-import { Props } from '@storybook/addon-docs/blocks';
+import { Props, Preview, Story } from '@storybook/addon-docs/blocks';
# NumberInput
@@ -10,8 +10,23 @@ import { Props } from '@storybook/addon-docs/blocks';
## Table of Contents
+- [Overview](#overview)
+- [Skeleton state](#skeleton-state)
+- [Component API](#component-api)
+- [Feedback](#feedback)
+
## Overview
+
+
+
+
+## Skeleton State
+
+
+
+
+
## Component API
diff --git a/packages/react/src/components/UIShell/HeaderGlobalAction.js b/packages/react/src/components/UIShell/HeaderGlobalAction.js
index 0ddc1a85cf89..329e3b5b23c9 100644
--- a/packages/react/src/components/UIShell/HeaderGlobalAction.js
+++ b/packages/react/src/components/UIShell/HeaderGlobalAction.js
@@ -10,6 +10,7 @@ import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { AriaLabelPropType } from '../../prop-types/AriaPropTypes';
+import Button from '../Button';
const { prefix } = settings;
@@ -29,6 +30,7 @@ const HeaderGlobalAction = React.forwardRef(function HeaderGlobalAction(
className: customClassName,
onClick,
isActive,
+ tooltipAlignment,
...rest
},
ref
@@ -43,15 +45,19 @@ const HeaderGlobalAction = React.forwardRef(function HeaderGlobalAction(
'aria-labelledby': ariaLabelledBy,
};
return (
-
+
);
});
@@ -82,6 +88,12 @@ HeaderGlobalAction.propTypes = {
* button fires it's onclick event
*/
onClick: PropTypes.func,
+
+ /**
+ * Specify the alignment of the tooltip to the icon-only button.
+ * Can be one of: start, center, or end.
+ */
+ tooltipAlignment: PropTypes.oneOf(['start', 'center', 'end']),
};
HeaderGlobalAction.displayName = 'HeaderGlobalAction';
diff --git a/packages/react/src/components/UIShell/SideNav.js b/packages/react/src/components/UIShell/SideNav.js
index e2f3364a9415..e01067da3659 100644
--- a/packages/react/src/components/UIShell/SideNav.js
+++ b/packages/react/src/components/UIShell/SideNav.js
@@ -74,7 +74,7 @@ const SideNav = React.forwardRef(function SideNav(props, ref) {
const overlayClassName = cx({
[`${prefix}--side-nav__overlay`]: true,
- [`${prefix}--side-nav__overlay-active`]: expanded,
+ [`${prefix}--side-nav__overlay-active`]: expanded || expandedViaHoverState,
});
let childrenToRender = children;
diff --git a/packages/react/src/components/UIShell/UIShell-story.js b/packages/react/src/components/UIShell/UIShell-story.js
index 5f96e1c9c5aa..2e66ce7984ea 100644
--- a/packages/react/src/components/UIShell/UIShell-story.js
+++ b/packages/react/src/components/UIShell/UIShell-story.js
@@ -11,7 +11,7 @@ import { Search20, Notification20, AppSwitcher20 } from '@carbon/icons-react';
import { action } from '@storybook/addon-actions';
-import React from 'react';
+import React, { useState } from 'react';
import { withReadme } from 'storybook-readme';
import readme from './README.md';
import HeaderContainer from './HeaderContainer';
@@ -42,6 +42,9 @@ import {
SwitcherItem,
SwitcherDivider,
} from '../UIShell';
+import Modal from '../Modal';
+import Button from '../Button';
+
import mdx from './UIShell.mdx';
SideNav.displayName = 'SideNav';
@@ -60,6 +63,7 @@ const Fade16 = () => (
);
const StoryContent = ({ useResponsiveOffset = true }) => {
+ const [open, setOpen] = useState(false);
const classNameFirstColumn = cx({
'bx--col-lg-13': true,
'bx--offset-lg-3': useResponsiveOffset,
@@ -112,6 +116,20 @@ const StoryContent = ({ useResponsiveOffset = true }) => {
on a page when using a side-nav, then the tabs are secondary in
hierarchy to the side-nav.
+
+ setOpen(false)}>
+
+ Custom domains direct requests for your apps in this Cloud Foundry
+ organization to a URL that you own. A custom domain can be a
+ shared domain, a shared subdomain, or a shared domain and host.
+