This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-section-header-examples
- Loading branch information
Showing
305 changed files
with
1,902 additions
and
1,183 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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
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 |
---|---|---|
|
@@ -105,6 +105,7 @@ | |
|
||
&.is-left-aligned { | ||
justify-content: start; | ||
text-align: start; | ||
} | ||
} | ||
|
||
|
Binary file added
BIN
+33.6 KB
...e/clinical-lowlight-theme/en/chrome_tiny/button-spec/long_text_left_aligned.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
-292 Bytes
(97%)
...apshots__/reference/orion-fusion-theme/en/chrome_tiny/button-spec/long_text.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
+30.9 KB
...erence/orion-fusion-theme/en/chrome_tiny/button-spec/long_text_left_aligned.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
+34.6 KB
...rence/terra-default-theme/en/chrome_tiny/button-spec/long_text_left_aligned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
59 changes: 59 additions & 0 deletions
59
packages/terra-core-docs/src/terra-dev-site/doc/dropdown-button/example/IconSplitButton.jsx
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import React from 'react'; | ||
import { Item, SplitButton } from 'terra-dropdown-button'; | ||
import { IconReply } from 'terra-icon'; | ||
|
||
import classNames from 'classnames/bind'; | ||
import styles from './IconSplitButton.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
const Example = () => ( | ||
<> | ||
<SplitButton | ||
primaryOptionLabel="Reply" | ||
icon={<IconReply />} | ||
onSelect={() => {}} | ||
buttonAttrs={{ | ||
'aria-label': 'icon split', | ||
}} | ||
className={cx('icon-button')} | ||
> | ||
<Item label="Reply All" onSelect={() => {}} /> | ||
<Item label="Forward" onSelect={() => {}} /> | ||
<Item label="Reply in 10 minutes" onSelect={() => {}} /> | ||
<Item label="Selective Reply" onSelect={() => {}} /> | ||
</SplitButton> | ||
<SplitButton | ||
primaryOptionLabel="Reply" | ||
icon={<IconReply />} | ||
isReversed | ||
onSelect={() => {}} | ||
buttonAttrs={{ | ||
'aria-label': 'reverse icon split', | ||
}} | ||
className={cx('icon-button')} | ||
> | ||
<Item label="Reply All" onSelect={() => {}} /> | ||
<Item label="Forward" onSelect={() => {}} /> | ||
<Item label="Reply in 10 minutes" onSelect={() => {}} /> | ||
<Item label="Selective Reply" onSelect={() => {}} /> | ||
</SplitButton> | ||
<SplitButton | ||
primaryOptionLabel="Reply" | ||
icon={<IconReply />} | ||
isIconOnly | ||
onSelect={() => {}} | ||
buttonAttrs={{ | ||
'aria-label': 'icon only split', | ||
}} | ||
className={cx('icon-button')} | ||
> | ||
<Item label="Reply All" onSelect={() => {}} /> | ||
<Item label="Forward" onSelect={() => {}} /> | ||
<Item label="Reply in 10 minutes" onSelect={() => {}} /> | ||
<Item label="Selective Reply" onSelect={() => {}} /> | ||
</SplitButton> | ||
</> | ||
); | ||
|
||
export default Example; |
5 changes: 5 additions & 0 deletions
5
...erra-core-docs/src/terra-dev-site/doc/dropdown-button/example/IconSplitButton.module.scss
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:local { | ||
.icon-button { | ||
margin: 5px; | ||
} | ||
} |
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
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
Oops, something went wrong.