Skip to content

Commit 4ca9f2c

Browse files
brandyscarneyadamdbradley
authored andcommitted
fix(input): add variables for alert and input placeholder color
closes #10153
1 parent ed8b6b5 commit 4ca9f2c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/alert/alert.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ $alert-button-line-height: 20px !default;
1515
/// @prop - Font size of the alert button
1616
$alert-button-font-size: 14px !default;
1717

18+
/// @prop - Color of the alert input placeholder
19+
$alert-input-placeholder-color: #999 !default;
20+
1821

1922
ion-alert {
2023
position: absolute;
@@ -75,7 +78,7 @@ ion-alert input {
7578
}
7679

7780
.alert-input {
78-
@include placeholder();
81+
@include placeholder($alert-input-placeholder-color);
7982

8083
padding: 10px 0;
8184

src/components/input/input.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ $text-input-highlight-color-valid: #32db64 !default;
99
/// @prop - Color of the input highlight when invalid
1010
$text-input-highlight-color-invalid: #f53d3d !default;
1111

12+
/// @prop - Color of the input placeholder
13+
$text-input-placeholder-color: #999 !default;
14+
1215

1316
// Input/Textarea Wrapper
1417
// --------------------------------------------------
@@ -41,7 +44,7 @@ ion-textarea {
4144
// --------------------------------------------------
4245

4346
.text-input {
44-
@include placeholder();
47+
@include placeholder($text-input-placeholder-color);
4548
@include appearance(none);
4649

4750
display: inline-block;

0 commit comments

Comments
 (0)