charmbracelet / charmbracelet/bubbles

textinput TextStyle vs PlaceholderStyle inconsistency

Open
#245 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
8.9k
Forks
457
Avg merge
1d 18h
Merged PRs (30d)
5

Description

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](https://user-images.githubusercontent.com/38056355/190833752-dd2a0cf1-97a7-485e-967f-e180e6a5bb8a.png)

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](https://user-images.githubusercontent.com/38056355/190833790-1f332045-ba21-457f-adc8-90302c671730.png)

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.