-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat(block)!: add required label property and mark heading as optional #10739
feat(block)!: add required label property and mark heading as optional #10739
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiiiice 😄
@@ -378,7 +385,7 @@ export class Block | |||
|
|||
const headerNode = ( | |||
<div class={CSS.headerContainer}> | |||
{this.dragHandle ? <calcite-handle label={heading} /> : null} | |||
{this.dragHandle ? <calcite-handle label={heading || label} /> : null} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but maybe this should use the newer calcite-drag-handle
at some point? Should we have an issue. @jcfranco
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think #10382 should cover it 👍
Adding @geospatialem for Accessibility review. |
Related Issue: #8697
Summary
label
property as required to provide context for AT users.heading
is no longer a required property.BREAKING CHANGE: The component's
label
property is a required property andheading
is an optional property.