Skip to content
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 40 commits into from
May 23, 2018
Merged

Jstefaniuk/hybridize #30

merged 40 commits into from
May 23, 2018

Conversation

jstefaniuk-d2l
Copy link
Contributor

@jstefaniuk-d2l jstefaniuk-d2l commented May 10, 2018

<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../vaadin-date-picker/vaadin-date-picker-styles.html">

<dom-module id="vaadin-overlay-styles" theme-for="vaadin-date-picker-overlay">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prefix should be d2l-?

@jstefaniuk-d2l jstefaniuk-d2l changed the title Jstefaniuk/hybridize [WIP] Jstefaniuk/hybridize May 13, 2018
@jstefaniuk-d2l
Copy link
Contributor Author

🎈 Seems to be working, ready for review

bower.json Outdated
"d2l-intl": "^0.4.1",
"iron-a11y-keys": "^1.0.9",
"app-localize-behavior": "~1.0.2",
"app-localize-behavior": "PolymerElements/app-localize-behavior#1 - 2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed as part of the hybridization, but I'd recommend getting this switched over to d2l-localize-behavior -- it should let you remove some of your resolution code and will ensure dates are formatted and parsed according to a user's preferences within Brightspace.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #22.

bower.json Outdated
"d2l-polymer-behaviors": "^1.0.0"
"d2l-polymer-behaviors": "^1.0.0",
"vaadin-date-picker": "^2.0.0",
"webcomponentsjs": "^v1.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised you need resolutions behind just webcomponentsjs....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I added that in earlier on, since now it seems like it's no longer used 👍

}

[part~="overlay-header"] {
background-color: var(--d2l-color-celestine);
Copy link
Member

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.


<dom-module id="d2l-vaadin-date-picker-polymer1-styles">
<template>
<custom-style>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the custom-style inside a dom-module template

Copy link

@CodeBaboon CodeBaboon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm no date-picker expert, but the code seems legit and the tests and demo's run swell.

@jstefaniuk-d2l jstefaniuk-d2l mentioned this pull request May 17, 2018
// on-value-changed got removed for the Polymer2 version of vaadin-date-picker,
// so for Polymer2 we'll set our own event
this._changeListener = this._handleValueChanged.bind(this);
this.addEventListener('value-changed', this._changeListener);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this not work in polymer 1?

@jstefaniuk-d2l jstefaniuk-d2l merged commit 6a80a90 into master May 23, 2018
@jstefaniuk-d2l jstefaniuk-d2l deleted the jstefaniuk/hybridize branch February 12, 2019 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants