Skip to content

feat: add placeholder attribute functionality for input and deprecate label#6

Open
MMasey wants to merge 1 commit into
getAddress:mainfrom
MMasey:feature/add-placeholder-and-deprecate-label
Open

feat: add placeholder attribute functionality for input and deprecate label#6
MMasey wants to merge 1 commit into
getAddress:mainfrom
MMasey:feature/add-placeholder-and-deprecate-label

Conversation

@MMasey
Copy link
Copy Markdown

@MMasey MMasey commented Mar 15, 2024

This PR added a new placeholder configuration option for the Input element. In addition, it deprecated the Input label option, whilst retaining backwards compatibility.

This update replaced the functionality where the input value and style would be programmatically updated to have the muted_style when empty, in favour of native browser functionality using the placeholder attribute.

This will make it easier to style the text colour of the input when no value has been entered, as well as improving accessibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant