-
-
Notifications
You must be signed in to change notification settings - Fork 56
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(ux-select): ux-select element #145
Conversation
@ZHollingshead @EisenbergEffect Design spec: from material design(-ish) Difference compared to native:
|
What does it mean to have an |
|
I may not get a chance to review until the weekend, but this looks very exciting. @bigopon Have you tested this with a |
@ZHollingshead At the moment I'm using
I think for the purpose of |
@bigopon I think it is unnecessary if we are just showing a checked state. I am not sure I would use a checkbox at all to be honest, the border and then the colors of the checked content can make the select menu look a bit.. cluttered. I like the idea of the items 'checking' though. You could try to just include the check mark SVG used in checkbox. That would display only a check mark next to a selected item which would give us the checked appearance, while also looking visually clean. What do you think? Checkmark SVG: <svg viewBox="0 0 24 24">
<path d="M0 0h24v24H0z" fill="none" />
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" />
</svg> |
Ill update the pr soon. :+1 |
@ZHollingshead @EisenbergEffect updated the pr No longer requires ux - checkbox |
Cool stuff @bigopon Can you talk about the swizzling of the prototype for the elements? Was that mostly a convenience? or was there something else you had in mind there? @ZHollingshead Can you review as well? |
One reason is to have synchronous behavior when notifying and receiving changes, which I believe is better when building a components lib like ux. Another reason is to have a unified Also for |
I am unable to build this by simply pulling down the repo and doing the following Here are some of the errors I got: Core Package In
In
This probably just needs the '// tslint:disable-next-line:no-empty-interface' line copied before each method. Checkbox Package
|
This was on a Windows 10 Machine by the way. NPM Version: 5.6.0 |
One other thing I just noticed. The folder should probably be called |
|
@bigopon everything looks good, is this good to merge? |
(I captured the gif at 15fps so it didn't show hide animation 😓 )
Usage is similar to native combo
<select/> / <option/>
:Because the way
replaceable /part
works is different with<slot/>
, I think we will provide another implementation like<ux-dropdown/>
or<ux-combobox/>
, where an item source is required to be supplied, with optional item template, similar to my other PR of<ux-select/>
at #132@EisenbergEffect @ZHollingshead It's a bit of a pain to setup gist run so probably please pull it down to review 😄
Note: it requires
<ux-checkbox/>
to be used as well