-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jstefaniuk/hybridize #30
Merged
Merged
Changes from 25 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
0a27079
Standardize editorconfig, eslintrc and package.json
svanherk 867a478
Setup Sauce
svanherk df75f4b
Remove window from behaviour and update gitignore
svanherk 813a0a6
Add bower ignore, variants and codeowners
svanherk e12a899
update bower deps
244bea3
linting
d4b3257
fix problem where iron-a11y-keys crashes since the _target object isn…
a04e22b
initial whack at styling the polymer 2 date picker to look the same a…
25f1ff7
make the input binding actually work for polymer 2
42dfac4
add .input class so that the polymer 1 version of vaadin-date-picker-…
4ebe161
fix the date being formatted wrong in the iron input box (we were get…
e89989a
css tweaks for responsive behaviour
6b8627f
fork the polymer 1 date picker to fix it's iron-input 2 incompatibility
d0c97ce
for polymer 2, this test needs to run after a render
a2dabf9
Fix event handler changes for p2 vaadin-date-picker and remove unused…
12b7a29
don't use fire, also test that the event is putting out the right value
233f229
put the time picker back since apparently it gets used
419f88c
code review changes
21dca0a
use d2l-localize-behavior
4d7042a
don't create a localizer specifically for this
2791bde
undo change accidentally commited
jstefaniuk-d2l 26f34eb
trigger the build again
jstefaniuk-d2l e5f49c6
break out polymer1 styles for reuse elsewhere
ecb2edd
Merge branch 'jstefaniuk/hybridize' of github.com:BrightspaceUI/date-…
fc8d527
remove custom-style tags
0c75c68
break the date picker js into it's own behavior for easier reuse
a2fd6e2
add a slot so that users can specify their own launcher, and add a de…
8b79ad7
allow for date picker 1 or 2
d423b9d
reduce the resolutions as much as possible
3a01b0a
all on the brightspace fork
1d34198
use brightspace released version
34ec7c6
add a way to inject css into the overlay
bd938f9
cleanup and code review
1f85e74
point to the right fastdom import location
37065d9
code review
0b775ef
remove comment
jstefaniuk-d2l 7f8ad1c
fastdom for focus
84b8bea
Merge branch 'date-picker-slot' of github.com:BrightspaceUI/date-pick…
92dbb16
remove unused resolution
48a50dd
Merge pull request #31 from BrightspaceUI/date-picker-slot
jstefaniuk-d2l File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
root = true | ||
[*] | ||
charset = utf8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 | ||
[{package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
root = true | ||
|
||
[*] | ||
charset = utf8 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[{*.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 |
File renamed without changes.
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,2 +1,4 @@ | ||
bower_components | ||
bower_components-1.x | ||
bower-1.x.json | ||
node_modules |
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,7 +1,9 @@ | ||
language: node_js | ||
node_js: node | ||
before_script: | ||
- npm install -g polymer-cli | ||
- polymer install --variants | ||
node_js: 9 | ||
script: | ||
- npm run test:lint | ||
- npm run lint | ||
- polymer test --skip-plugin local | ||
env: | ||
global: | ||
- SAUCE_USERNAME: Desire2Learn | ||
- secure: R9nrpeyuMcZTHnBcVAuMn+q/Fp9ti9K31tYlkBFhXtJc+rM/TYERiN195SRgbk2Gy6fK4exUXIWZtJW+cxuRwDoBIcSGWRwHWmkDc5k13kLaW/BcdWAfI/yFEkAwzrO1AfQOsB1qdbfYle9pP724BebfQHlqAxH9zNWlQdek+Gr02WKKXMWWhl2bH4P2QbNQItD5X6+xQTbnbmZnUECap9mQXbCzPVNU2MwvPRLuYuJmjcNBdC39iGfZNBY/+N1Ix3y6yFa41VD773KiqTZhVOM1TvVJz/lb+Dm25qSZdKixC0987eDY5zHiCigHIjJxo1bDwJz4xJ/DsnIo+hk0LvrOPvoxBp6tFNhGQgIUkwk0Lz6FsNQcH5l5QLh1ROq4isNx9BVEOHb+W1PdFzFlvoKf9+WS/ysSw19B/GFhtLJGTmGkaxnEBxhJ+DyiVnV5APV+cE4AEA4yB/Vz7cKOrBlLbZdZFb8x9DtHamKvyoZh7RVun6BHSmMNAlPD83oxF9HZ7GjhKeC1EpvIdSrZAh6NKgklt0slwSumWU6VfJeoT4STNfiP39DzHHtWqscwTTAG9Rp4UFxDRsz6jCWaPf7AfYe85fXp+EwBRC0RYikQz43IFnKoGpz69qNh4vap6HNPQmM2uctZeWbhtDSq2FzN5fbheSV5QlFeq88O4S8= |
Validating CODEOWNERS rules …
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 @@ | ||
* @alogan519 @d2l-pbrown |
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,140 @@ | ||
<link rel="import" href="../polymer/polymer.html"> | ||
<link rel="import" href="../d2l-colors/d2l-colors.html"> | ||
<link rel="import" href="../vaadin-date-picker/vaadin-date-picker-styles.html"> | ||
|
||
<dom-module id="d2l-vaadin-date-picker-polymer1-styles"> | ||
<template> | ||
<style> | ||
vaadin-date-picker-light { | ||
--primary-color: var(--d2l-color-celestine); | ||
--light-primary-color: var(--d2l-color-celestine-plus-1); | ||
--dark-theme-background-color: var(--d2l-color-ferrite); | ||
--dark-theme-secondary-color: #ffffff; | ||
--primary-text-color: var(--d2l-color-ferrite); | ||
--secondary-text-color: var(--d2l-color-tungsten); | ||
|
||
--vaadin-date-picker-overlay: { | ||
font-family: inherit; | ||
max-height: 355px; | ||
}; | ||
--vaadin-date-picker-yearscroller: { | ||
font-family: inherit; | ||
}; | ||
--vaadin-date-picker-header: { | ||
font-family: inherit; | ||
}; | ||
--vaadin-date-picker-calendar-title: { | ||
font-family: inherit; | ||
}; | ||
--vaadin-date-picker-calendar-cell: { | ||
font-family: inherit; | ||
}; | ||
--vaadin-date-picker-footer: { | ||
font-family: inherit; | ||
}; | ||
--vaadin-date-picker-calendar: { | ||
font-family: inherit; | ||
}; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
||
<dom-module id="d2l-vaadin-overlay-styles" theme-for="vaadin-date-picker-overlay"> | ||
<template> | ||
<style include="vaadin-date-picker-overlay-default-theme"> | ||
:host { | ||
font-family: inherit; | ||
max-height: 355px; | ||
} | ||
|
||
[part~="overlay-header"] { | ||
background-color: var(--d2l-color-celestine); | ||
color: white; | ||
} | ||
|
||
[part~="toolbar"] { | ||
background: white; | ||
box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.5); | ||
} | ||
|
||
[part~="years"] { | ||
color: white; | ||
background-color: var(--d2l-color-ferrite); | ||
} | ||
|
||
[part~="year-separator"] { | ||
color: var(--d2l-color-tungsten); | ||
} | ||
|
||
[part~="year-separator"]::after { | ||
font-size: 5px; | ||
} | ||
|
||
[part~="years-toggle-button"] { | ||
background-color: var(--d2l-color-celestine); | ||
cursor: pointer; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
||
<dom-module id="d2l-vaadin-month-calendar-styles" theme-for="vaadin-month-calendar"> | ||
<template> | ||
<style include="vaadin-month-calendar-default-theme"> | ||
:host { | ||
font-family: inherit; | ||
color: var(--d2l-color-tungsten); | ||
} | ||
|
||
[part~="date"][today] { | ||
background-color: transparent; | ||
color: var(--d2l-color-celestine-plus-1); | ||
} | ||
|
||
:host([focused]) [part~="date"][focused], | ||
[part~="date"][focused] { | ||
background: var(--d2l-color-celestine); | ||
color: white; | ||
font-weight: 700; | ||
} | ||
|
||
[part~="month-header"] { | ||
color: var(--d2l-color-ferrite); | ||
font-size: 16px; | ||
font-weight: 400; | ||
line-height: 24px; | ||
font-family: inherit; | ||
} | ||
|
||
[part~="weekday"] { | ||
opacity: 1; | ||
color: var(--d2l-color-ferrite); | ||
font-size: 12px; | ||
text-transform: uppercase; | ||
opacity: 0.8; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> | ||
|
||
<dom-module id="d2l-vaadin-button-styles" theme-for="vaadin-button"> | ||
<template> | ||
<style> | ||
:host { | ||
font-family: inherit; | ||
} | ||
|
||
[part~="button"] { | ||
background: none; | ||
font-family: inherit; | ||
color: var(--d2l-color-celestine); | ||
font-size: 14px; | ||
text-transform: uppercase; | ||
border: none; | ||
cursor: pointer; | ||
font-weight: 500; | ||
} | ||
</style> | ||
</template> | ||
</dom-module> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're referencing the colors CSS variables, you should import
d2l-colors.html
explicitly -- just in case it gets removed from another import later.