scania-digital-design-system/sdds

sdds-textfield label

Closed this issue · 1 comments

Requirements before reporting

  • No duplicated issue reported.
  • I have read the contribution guidelines.
  • I have checked the lastest version if the bug exist there. See all avaliable packages at npmJS.com
  • I have made sure that the issue comes from SDDS packages by removing SDDS from my project as a test.
  • I have followed the installation guide.

Package

@scania/components

Package versions

@scania/components 4.5

Browser

Edge (Chromium)

Framework

Angular

Version

14

Reproduction steps

Setting label-inside does works when doing this:

but not any of this


<sdds-textfield [label-inside]="'{{label text}}'" placeholder="Write something">

Code example

See reproduction steps

Screenshots

Add/Copy screenshot here

Expected behaviour

Should be possible to set label-inside using binding of variable or calling function.
We need this feature to be able to have localization on labels och we dont want the label above the field

Console errors

Add warning/error message

Contact information

dan.granroth@scania.com

This should have been resolved by using label as a slot in the latest versions of both the @scania/components and @scania/tegel packages.