Skip to content

Commit

Permalink
add week and month
Browse files Browse the repository at this point in the history
  • Loading branch information
scomea committed Sep 7, 2023
1 parent ee94faa commit 4d9071c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const styles = css`
line-height: var(--type-ramp-base-line-height);
}
input[type="date"]::-webkit-calendar-picker-indicator {
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
filter: invert(0.5);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ export const TextFieldType = {
* A date TextField
*/
date: "date",

/**
* A month TextField
*/
month: "month",

/**
* A week TextField
*/
week: "week",
} as const;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Used anywhere an author might otherwise use:
- input[type="tel"]
- input[type="url"]
- input[type="date"]
- input[type="week"]
- input[type="month"]

### Features

Expand Down

0 comments on commit 4d9071c

Please sign in to comment.