-
Notifications
You must be signed in to change notification settings - Fork 24
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
139 - ids-spinbox wc #206
139 - ids-spinbox wc #206
Conversation
…erage for cycling values w arrow keys
…ycodes with array reference currently
…disabled and borders
…put flexible ids now wip)
…h will add an aria-label to make Axe happy
…abled label example
…n "label-required" support
…ll sorting 1 tsconfig import error...)
…ement + ids-spinbox: support validation properly
…ider attribs toggling in some scenarios, JSDoc
…case on ids-spinbox
…arts, d.ts comments to push up PR next week
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.
Looks really good and getting more consistent. Just a couple things that could be improved (some could be moved to TODO).
- Can you make sure it works in all themes see https://github.com/infor-design/enterprise-wc/tree/main/src/ids-mixins#ids-theme-mixin for details (all the components you did are missing this so should get in the habit)
- The focus state is looking a bit strange
- We have a feature i just remembered where you can hold and press the spinbox
- go to https://main-enterprise.demo.design.infor.com/components/spinbox/example-index.html
- hold down on the + button with the mouse
- this is the code https://github.com/infor-design/enterprise/blob/main/src/components/spinbox/spinbox.js#L735 and general logic
My suggestion would be fix 1 and 2 and add 3 to the TODO for now but feel free to add
app/ids-spinbox/index.js
Outdated
@@ -0,0 +1,2 @@ | |||
import IdsSpinbox from '../../src/ids-spinbox'; | |||
import './demo.scss'; |
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.
This can go in example.js (or else the demo css will go in the built component)
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.
not sure if this is user error here, but tried to put this into app/ids-spinbox/example.js
and it doesn't actually reflect when visiting the main app index.
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.
I did it here https://github.com/infor-design/enterprise-wc/tree/main/app/ids-tooltip but not sure about the main index either. You maybe need to import it index.js but sounds like this is for layout? If so i would just remove it and use ids-layout grid?
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.
@rob2d looking very nice, few things found
- Why not used the use
ids-layout-grid
for demo example - Missing read-only example
- Initial load focus was on last spin-input
- Input is fine, but each button around looks bit wider
- Type in
10
then click on ant button +/- value got reset - In 0-to-5 spin box, it let enter other values like
60
- Missing getter/setter for
label
,label-required
,readonly
andplaceholder
props - Do we need
label-required
in demo example? by default it should be true
@deep7102 thanks for the feedback. Re: I saw in the issue it said handling blur/etc was not for Phase I, so I was aware of that but just pushing with functionality as it is since that's a related edge case. Edit: seems for other issues I do at least need a change handler here. |
@deep7102 seems placeholder and label setters are there for
I believe this is a separate issue/slightly out of scope and on |
Explain the details for making this change. What existing problem does the pull request solve?
Adds IdsSpinbox (Phase 1) and base attributes.
Misc: also fixes:
a small potential issue with ids-keyboard-mixin where we sub on an array as the key vs the events (since we do not actually group key combos or use it in this manner in other components -- the fix was 2 lines so figured small enough to include here)
Related github/jira issue (required):
Closes #139
Steps necessary to review your pull request (required):
pull this PR branch locally and run environment (139-ids-spinbox)
visit http://localhost:4300/ids-spinbox/
ensure functionality listed at #139 for Phase 1 is implemented.
Included in this Pull Request: