Commit 4d8aff0
authored
feat(theming): add a global --ion-placeholder-opacity variable (#28944)
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
- [x] No
## Other information
Documentation pull request:
ionic-team/ionic-docs#34211 parent c487dac commit 4d8aff0
File tree
3 files changed
+5
-1
lines changed- core/src
- css/themes
- themes
3 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments