Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(theming): add a global --ion-placeholder-opacity variable #28944

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

brandyscarney
Copy link
Member

Issue number: internal


What is the current behavior?

Developers are unable to globally change the placeholder opacity for inputs, textareas, searchbars, and selects. This becomes particularly problematic when trying to apply a high contrast theme.

What is the new behavior?

  • Adds the --ion-placeholder-opacity with a fallback of 0.6 (this fallback is unchanged)
  • Sets the --ion-placeholder-opacity to 0.8 for the high contrast light & dark themes

Note

The ticket says to update the standard light and dark themes to define --ion-placeholder-opacity: 0.6, however, I did not do this because this is not different than the fallback and therefore does not need to be defined.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Documentation pull request: ionic-team/ionic-docs#3421

@github-actions github-actions bot added the package: core @ionic/core package label Jan 31, 2024
@brandyscarney brandyscarney marked this pull request as ready for review January 31, 2024 18:22
@brandyscarney brandyscarney requested review from a team and sean-perkins and removed request for a team January 31, 2024 18:23
@brandyscarney brandyscarney merged commit 4d8aff0 into FW-5747 Feb 1, 2024
44 checks passed
@brandyscarney brandyscarney deleted the FW-5834 branch February 1, 2024 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants