Skip to content

Commit

Permalink
v1.11.9-alpha-9 : Fix InputField and ListBox placeholder opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
sujan-s committed Jan 12, 2025
1 parent 9f6692f commit b984e54
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fictoan-react",
"version": "1.11.9-alpha.8",
"version": "1.11.9-alpha.9",
"private": false,
"description": "A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.",
"repository": {
Expand Down
11 changes: 6 additions & 5 deletions src/components/Form/InputField/input-field.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ input[data-input-field] {

::placeholder {
color : var(--input-placeholder-default);
opacity : 1; /* For Firefox */
opacity : var(--input-placeholder-opacity);
}

::-ms-input-placeholder {
color : var(--input-placeholder-default);
color : var(--input-placeholder-default);
opacity : var(--input-placeholder-opacity);
}

&:active,
Expand All @@ -44,9 +45,9 @@ input[data-input-field] {
/* VALIDATION /////////////////////////////////////////////////////////// */
/* Red everything when invalid ========================================== */
&:invalid:not(:focus):not(:placeholder-shown) {
color : var(--input-text-invalid);
border : var(--global-border-width) solid var(--input-border-invalid);
background-color : var(--input-bg-invalid);
color : var(--input-text-invalid);
border : var(--global-border-width) solid var(--input-border-invalid);
background-color : var(--input-bg-invalid);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/components/Form/ListBox/list-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
span.placeholder {
line-height : 1;
color : var(--input-placeholder-default);
opacity : var(--input-placeholder-opacity);
}

p { color : var(--input-text-default) }
Expand Down
3 changes: 2 additions & 1 deletion src/styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@
--input-border-width-default : var(--global-border-width);

--input-label-default : var(--paragraph-text-colour);
--input-placeholder-default : var(--slate-light40);
--input-text-default : var(--paragraph-text-colour);
--input-placeholder-default : var(--slate-light40);
--input-placeholder-opacity : 0.5;

--input-bg-focus : var(--white);
--input-border-focus : var(--slate-light40);
Expand Down

0 comments on commit b984e54

Please sign in to comment.