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

feat(ui5-switch) add new web component #102

Merged
merged 15 commits into from
Feb 27, 2019
Merged

Conversation

ilhan007
Copy link
Member

No description provided.

}
}

onkeydown(event) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe use the onsap____? We need to discuss if it is really needed

Copy link
Member

Choose a reason for hiding this comment

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

by it I mean onsap__ psuedo events generation

static getMainClasses(state) {
return {
"ui5-switch": true,
"ui5-switch--disabled": state.disabled,
Copy link
Member

Choose a reason for hiding this comment

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

classes look good to me, but we need to discuss if we are staying with that BEM

Copy link
Member Author

Choose a reason for hiding this comment

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

classes look good to me, but we need to discuss if we are staying with that BEM

For sure we should discuss it, I liked it as well.

}

.ui5-switch-text--on {
left: calc(~"-100% + 1.9125rem");
Copy link
Member

Choose a reason for hiding this comment

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

hmm, should you escape the whole calc expression like ~"calc(100% .. )"

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, should you escape the whole calc expression like ~"calc(100% .. )"

Yes, in the less files we should escape the calc, once we move the styles in css, we can remove the escaping.

MapTo0
MapTo0 previously approved these changes Feb 27, 2019
pskelin
pskelin previously approved these changes Feb 27, 2019
@ilhan007 ilhan007 dismissed stale reviews from pskelin and MapTo0 via 7975ce2 February 27, 2019 11:22
@ilhan007 ilhan007 merged commit 280d35a into master Feb 27, 2019
@ilhan007 ilhan007 deleted the feat-switch-web-component branch February 27, 2019 12:25
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.

3 participants