-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/DES-662-Select
- Loading branch information
Showing
65 changed files
with
2,127 additions
and
1,935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- @license CC0-1.0 --> | ||
|
||
# Date Input | ||
|
||
Helps users enter a date. | ||
|
||
## Visual considerations | ||
|
||
This component uses a native date input, which is styled differently in different browsers and operating systems. | ||
Recreating the native functionality is quite difficult and prone to accessibility errors, which is why we’ve chosen not to do that. | ||
This does mean that this component does not look identical on all browsers and operating systems. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/** | ||
* @license EUPL-1.2+ | ||
* Copyright Gemeente Amsterdam | ||
*/ | ||
|
||
@import "../../common/text-rendering"; | ||
|
||
@mixin reset { | ||
// Reset native appearance, this causes issues on iOS and Android devices | ||
-webkit-appearance: none; | ||
appearance: none; | ||
border: 0; | ||
border-radius: 0; // Reset rounded borders on iOS devices | ||
box-sizing: border-box; | ||
margin-block: 0; | ||
} | ||
|
||
.ams-date-input { | ||
background-color: var(--ams-date-input-background-color); | ||
box-shadow: var(--ams-date-input-box-shadow); | ||
color: var(--ams-date-input-color); | ||
font-family: var(--ams-date-input-font-family); | ||
font-size: var(--ams-date-input-font-size); | ||
font-weight: var(--ams-date-input-font-weight); | ||
line-height: var(--ams-date-input-line-height); | ||
|
||
// Set min height for iOS, otherwise an empty box is a lot smaller than a filled one. | ||
min-height: calc( | ||
(var(--ams-date-input-font-size) * var(--ams-date-input-line-height)) + 2 * var(--ams-date-input-padding-block) | ||
); | ||
|
||
// Set min width for iOS, so the width is closer to the filled in width. | ||
min-width: calc(8ch + (2 * var(--ams-date-input-padding-inline))); | ||
outline-offset: var(--ams-date-input-outline-offset); | ||
padding-block: var(--ams-date-input-padding-block); | ||
padding-inline: var(--ams-date-input-padding-inline); | ||
touch-action: manipulation; | ||
|
||
@include text-rendering; | ||
@include reset; | ||
|
||
&:hover { | ||
box-shadow: var(--ams-date-input-hover-box-shadow); | ||
} | ||
} | ||
|
||
// This changes the default calendar icon on Chromium browsers only | ||
.ams-date-input::-webkit-calendar-picker-indicator { | ||
appearance: none; | ||
background-image: var(--ams-date-input-calender-picker-indicator-background-image); | ||
cursor: pointer; | ||
} | ||
|
||
.ams-date-input:hover::-webkit-calendar-picker-indicator { | ||
background-image: var(--ams-date-input-hover-calender-picker-indicator-background-image); | ||
} | ||
|
||
.ams-date-input:disabled { | ||
background-color: var(--ams-date-input-disabled-background-color); | ||
box-shadow: var(--ams-date-input-disabled-box-shadow); | ||
color: var(--ams-date-input-disabled-color); | ||
cursor: not-allowed; | ||
} | ||
|
||
.ams-date-input:disabled::-webkit-calendar-picker-indicator { | ||
background-image: var(--ams-date-input-disabled-calender-picker-indicator-background-image); | ||
visibility: visible; | ||
} | ||
|
||
.ams-date-input:invalid, | ||
.ams-date-input[aria-invalid="true"] { | ||
box-shadow: var(--ams-date-input-invalid-box-shadow); | ||
|
||
&:hover { | ||
// TODO: this should be the (currently non-existent) dark red hover color | ||
box-shadow: var(--ams-date-input-invalid-hover-box-shadow); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/css/src/components/form-label/README.md → packages/css/src/components/label/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<!-- @license CC0-1.0 --> | ||
|
||
# Form Label | ||
# Label | ||
|
||
Describes a form control. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @license EUPL-1.2+ | ||
* Copyright Gemeente Amsterdam | ||
*/ | ||
|
||
@import "../../common/hyphenation"; | ||
@import "../../common/text-rendering"; | ||
|
||
.ams-label { | ||
color: var(--ams-label-color); | ||
font-family: var(--ams-label-font-family); | ||
font-size: var(--ams-label-font-size); | ||
font-weight: var(--ams-label-font-weight); | ||
line-height: var(--ams-label-line-height); | ||
|
||
@include hyphenation; | ||
@include text-rendering; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- @license CC0-1.0 --> | ||
|
||
# Time Input | ||
|
||
Helps users enter time. | ||
|
||
## Visual considerations | ||
|
||
This component uses a native time input, which is styled differently in different browsers and operating systems. | ||
Recreating the native functionality is quite difficult and prone to accessibility errors, which is why we’ve chosen not to do that. | ||
This does mean that this component does not look identical on all browsers and operating systems. |
Oops, something went wrong.