mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
fix(TimePickerSelect): deprecate hideLabel to match spec
This commit is contained in:
parent
767e113e27
commit
e1fbd56231
2 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
export let labelText = "";
|
||||
|
||||
/**
|
||||
* @deprecated The `hideLabel` prop for `TimePickerSelect` is no longer needed and has been deprecated. It will be removed in the next major release.
|
||||
* Set to `true` to visually hide the label text
|
||||
* @type {boolean} [hideLabel=false]
|
||||
*/
|
||||
|
@ -72,6 +73,7 @@
|
|||
for="{id}"
|
||||
class:bx--label="{true}"
|
||||
class:bx--visually-hidden="{hideLabel}">
|
||||
<!-- TODO: set to always be `true` after `hideLabel` is deprecated -->
|
||||
{labelText}
|
||||
</label>
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue