sbb-design-systems / lyne-components

Components for Lyne Design System
https://lyne-storybook.app.sbb.ch
MIT License
45 stars 13 forks source link

lyne-text-input #1235

Closed OkanBostan closed 2 years ago

OkanBostan commented 2 years ago

Feature Description

We want to review/refactor the lyne-text-input implementation.

[Figma Spec] (https://www.figma.com/file/9r6xSfNmEfCFxl1yFYedrj/Lyne-Components?node-id=140%3A23)

References

Design Spec

Technical Spec

Definition of Done

sebastiencloss commented 2 years ago

const myFocusEvent = new CustomEvent("customSetFocus", { detail: {}});

const inputComponent = document.querySelector("sbb-text-input"); inputComponent.dispatchEvent(myFocusEvent);

kyubisation commented 2 years ago

lyne-text-input will be replaced by sbb-form-field and with its new structure, you should be able to place focus directly on the input element.