-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
557 additions
and
591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,181 @@ | ||
--- | ||
title: Menu buttons | ||
description: add | ||
|
||
tabs: ['Usage', 'Style', 'Code', 'Accessibility'] | ||
--- | ||
|
||
TODO | ||
<PageDescription> | ||
|
||
Preview the menu button, combo button, and overflow menu component with the | ||
React live demo. For detailed code usage documentation, see the Storybooks for | ||
each framework below. | ||
|
||
</PageDescription> | ||
|
||
## Documentation | ||
|
||
### Menu button | ||
|
||
<Row className="resource-card-group"> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="React" | ||
href="https://react.carbondesignsystem.com/?path=/docs/components-menubutton--overview" | ||
> | ||
|
||
<MdxIcon name="react" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Web Components coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="webcomponents" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Angular (Community) coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="angular" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Vue (Community) coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="vue" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
</Row> | ||
|
||
### Combo button | ||
|
||
<Row className="resource-card-group"> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="React" | ||
href="https://react.carbondesignsystem.com/?path=/docs/components-combobutton--overview" | ||
> | ||
|
||
<MdxIcon name="react" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Web Components coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="webcomponents" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Angular (Community) coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="angular" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Vue (Community) coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="vue" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
</Row> | ||
|
||
### Overflow menu | ||
|
||
<Row className="resource-card-group"> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="React" | ||
href="https://react.carbondesignsystem.com/?path=/docs/components-overflowmenu--overview" | ||
> | ||
|
||
<MdxIcon name="react" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Web Components coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="webcomponents" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Angular (Community) coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="angular" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
<Column colLg={4} colMd={4} noGutterSm> | ||
<ResourceCard | ||
subTitle="Vue (Community) coming soon" | ||
disabled | ||
href="" | ||
> | ||
|
||
<MdxIcon name="vue" /> | ||
|
||
</ResourceCard> | ||
</Column> | ||
</Row> | ||
|
||
## Live demo | ||
|
||
<StorybookDemo | ||
themeSelector | ||
url="https://react.carbondesignsystem.com" | ||
short | ||
variants={[ | ||
{ | ||
label: 'Menu button', | ||
variant: 'components-menubutton--default', | ||
}, | ||
{ | ||
label: 'Combo button', | ||
variant: 'components-combobutton--default', | ||
}, | ||
{ | ||
label: 'Overflow menu', | ||
variant: 'components-overflowmenu--default', | ||
}, | ||
]} | ||
/> |
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.32 KB
(100%)
src/pages/components/menu-buttons/images/style-menu-buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.03 KB
(93%)
src/pages/components/menu-buttons/images/style-structure-combo-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.9 KB
(93%)
src/pages/components/menu-buttons/images/style-structure-menu-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+122 KB
...mponents/menu-buttons/images/usage-menu-alignment-menu-buttons-alternatives.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+230 KB
...es/components/menu-buttons/images/usage-menu-alignment-menu-buttons-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+138 KB
src/pages/components/menu-buttons/images/usage-menu-button-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.3 KB
src/pages/components/menu-buttons/images/usage-menu-combo-button-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.9 KB
src/pages/components/menu-buttons/images/usage-menu-combo-button-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+107 KB
src/pages/components/menu-buttons/images/usage-menu-combo-button-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.91 KB
(91%)
src/pages/components/menu-buttons/images/usage-menu-ghost-button-width-do.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.67 KB
(89%)
src/pages/components/menu-buttons/images/usage-menu-ghost-button-width-dont.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53.2 KB
src/pages/components/menu-buttons/images/usage-menu-keyboard-combo-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+71.9 KB
src/pages/components/menu-buttons/images/usage-menu-keyboard-menu-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
src/pages/components/menu-buttons/images/usage-menu-mouse-combo-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68.8 KB
...ages/components/menu-buttons/images/usage-menu-mouse-keyboard-overflow-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13.3 KB
(87%)
src/pages/components/menu-buttons/images/usage-menu-placement-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file removed
BIN
-47.2 KB
src/pages/components/menu-buttons/images/usage-menu-width-long-1.png
Diff not rendered.
Diff not rendered.
Binary file removed
BIN
-44.5 KB
src/pages/components/menu-buttons/images/usage-menu-width-short-do.png
Diff not rendered.
Binary file removed
BIN
-46.3 KB
src/pages/components/menu-buttons/images/usage-menu-width-short-donot.png
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+43.3 KB
src/pages/components/menu-buttons/images/usage-sizing-height-dont.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.