-
Notifications
You must be signed in to change notification settings - Fork 90
feat(block-section): add icon property (deprecates status)
#9194
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
Merged
Elijbet
merged 29 commits into
main
from
elijbet/8110-block-section-deprecate-status-prop-add-icon-prop
May 11, 2024
Merged
Changes from 23 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
34c89e7
move chevron to the right side
Elijbet cfd2feb
update arrow orientation to match similar components
Elijbet a59e66b
feat(block-section): deprecate status property, add icon property
Elijbet c3b1822
component tokens and themed test
Elijbet f7dedd1
cleanup
Elijbet c56c0c2
deprecate status prop
Elijbet bbc218a
move status icon so that chevron doesn't overlap
Elijbet d593ed7
switch and button alignment with regards to icon-end and status
Elijbet be02634
themed for button and toggle
Elijbet 8576a7c
text no longer overlaps with icons
Elijbet b058e53
demo icon-start/end with switch/button and deprecated status
Elijbet c8d42e1
cleanup
Elijbet 7ee0cc3
tidy up - move everything into content
Elijbet 3042e20
remove margin
Elijbet 8e1b7d3
add margin to switch to preserve previous setup
Elijbet bc0fa4b
12px gap solution
Elijbet d2b9ad8
cleanup
Elijbet 6ea00d4
cleanup
Elijbet a0200d9
WIP
Elijbet 4aacdd9
WIP
Elijbet 4eb19a5
cleanup
Elijbet cebb0a9
internal vars
Elijbet cbdd375
cleanup
Elijbet 99432fe
switch should not be nested
Elijbet 833133a
cleanup
Elijbet f58845f
cleanup
Elijbet fea2abd
cleanup
Elijbet c9cf981
merge main
Elijbet c8d3644
cleanup
Elijbet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
31 changes: 31 additions & 0 deletions
31
packages/calcite-components/src/components/block-section/block-section.stories.ts
This file contains hidden or 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,31 @@ | ||
| import { html } from "../../../support/formatting"; | ||
|
|
||
| export default { | ||
| title: "Components/Block Section", | ||
| }; | ||
|
|
||
| export const icons_TestOnly = (): string => html` | ||
| <calcite-block heading="Heading" description="summary" collapsible open> | ||
|
Elijbet marked this conversation as resolved.
Outdated
|
||
| <calcite-block-section | ||
| text="Planes, trains, and automobiles are some examples of modes of transportation" | ||
| open | ||
| icon-end="pen" | ||
| icon-start="pen" | ||
| toggle-display="switch" | ||
| status="valid" | ||
| > | ||
| <p>Block section content</p> | ||
| </calcite-block-section> | ||
|
|
||
| <calcite-block-section | ||
| text="Planes, trains, and automobiles are some examples of modes of transportation" | ||
| open | ||
| icon-end="pen" | ||
| icon-start="pen" | ||
| toggle-display="button" | ||
| status="valid" | ||
| > | ||
| <p>Block section content</p> | ||
| </calcite-block-section> | ||
| </calcite-block> | ||
| `; | ||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.