mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(checkbox): do not set title attribute if already provided (#1323)
* fix(checkbox): do not set title attribute if already provided * Run "yarn build:docs"
This commit is contained in:
parent
f431104057
commit
c90594002a
3 changed files with 3 additions and 3 deletions
|
@ -66,7 +66,7 @@
|
|||
let refLabel = null;
|
||||
|
||||
$: isTruncated = refLabel?.offsetWidth < refLabel?.scrollWidth;
|
||||
$: title = isTruncated ? refLabel?.innerText : title;
|
||||
$: title = !title && isTruncated ? refLabel?.innerText : title;
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-mouse-events-have-key-events -->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue