bubbles icon indicating copy to clipboard operation
bubbles copied to clipboard

textinput TextStyle vs PlaceholderStyle inconsistency

Open Numilani opened this issue 2 years ago • 1 comments

When using a textinput, the TextStyle style is applied across the entire width of the line, as such: Screenshot from 2022-09-16 20-42-45

However, when using a placeholder, the PlaceholderStyle only applies to the bit behind the placeholder text, as such: Screenshot from 2022-09-16 20-43-55

the style for both is the same: lipgloss.NewStyle().Background(lipgloss.Color("#AFAFAF")).Foreground(lipgloss.Color("#000000"))

Not entirely sure if this would be considered a bug, but it seems like an inconsistent bit of behavior. Figured it was worth mentioning.

Numilani avatar Sep 17 '22 00:09 Numilani

Thank you: this is a good catch and we should be consistent here. The way the placeholder is rendering is the correct one and we should normalize the other case accordingly.

meowgorithm avatar Sep 17 '22 02:09 meowgorithm