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(Select): added option for no default selection #749

Merged
merged 4 commits into from
May 11, 2022

Conversation

mukiienko
Copy link
Contributor

@mukiienko mukiienko commented Apr 29, 2022

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. Use imperative, present tense in your commit description ("change", not "changed" or "changes") without uppercases or period (.) at the end.

Checklist

  • The implementation has been manually tested and complies with Textkernel browser support guidelines
  • The implementation complies with accessibility standards.
  • The component has a displayName defined.
  • The component comes with a detailed PropTypes (and defaultProps) definition.
  • Component PropTypes are sufficiently described / documented.
  • There is a story in Storybook.

@mukiienko mukiienko force-pushed the ONEUI-301-select-component-improvements branch from 23a689f to f73c11c Compare May 4, 2022 14:30
@eszthoff
Copy link
Contributor

eszthoff commented May 5, 2022

When I tried tested the onFocus call: it works in the clearable version as expected. but in the simple implementation for some reason, clicking on the icon directly doesn't trigger onFocus. Can you have a look?

@eszthoff
Copy link
Contributor

eszthoff commented May 5, 2022

Maybe it is too late for this point, but I wonder why you decided to implement the arrow in FieldWrapper / SelectBase that is used in different places and not in the Select itself, as it was before, and as it is done in Combobox for instance.

@mukiienko
Copy link
Contributor Author

Maybe it is too late for this point, but I wonder why you decided to implement the arrow in FieldWrapper / SelectBase that is used in different places and not in the Select itself, as it was before, and as it is done in Combobox for instance.

The "clear" button is implemented FieldWrapper and it is hard to combine "clear" and "arrow" buttons together if they are in different components.

@mukiienko
Copy link
Contributor Author

When I tried tested the onFocus call: it works in the clearable version as expected. but in the simple implementation for some reason, clicking on the icon directly doesn't trigger onFocus. Can you have a look?

Fixed, now it works for the both implementations. These changes also fixed onFocus test.

@eszthoff
Copy link
Contributor

Maybe it is too late for this point, but I wonder why you decided to implement the arrow in FieldWrapper / SelectBase that is used in different places and not in the Select itself, as it was before, and as it is done in Combobox for instance.

The "clear" button is implemented FieldWrapper and it is hard to combine "clear" and "arrow" buttons together if they are in different components.

should we use this option also in Combobox? maybe it is a quick fix can be done here, or if not, create a followup story (that we will never pick up with the current pace, but at least have a record for future generations :-P )

@eszthoff
Copy link
Contributor

Last thing, I think the PR title / commit message after squash should be feat(Select): added option for no default selection. Something like that, main point being:

  • Select is included right after feat
  • better be specific of what 'improvements' were made

@mukiienko mukiienko closed this May 11, 2022
@mukiienko mukiienko reopened this May 11, 2022
@mukiienko
Copy link
Contributor Author

Maybe it is too late for this point, but I wonder why you decided to implement the arrow in FieldWrapper / SelectBase that is used in different places and not in the Select itself, as it was before, and as it is done in Combobox for instance.

The "clear" button is implemented FieldWrapper and it is hard to combine "clear" and "arrow" buttons together if they are in different components.

should we use this option also in Combobox? maybe it is a quick fix can be done here, or if not, create a followup story (that we will never pick up with the current pace, but at least have a record for future generations :-P )

It makes sense, I already was trying to do that, but it requires some changes in Combobox. I created task for refactoring ONEUI-303

@mukiienko mukiienko changed the title feat: added improvements for select component feat(Select): added option for no default selection May 11, 2022
@mukiienko mukiienko merged commit 3152153 into master May 11, 2022
@mukiienko mukiienko deleted the ONEUI-301-select-component-improvements branch May 11, 2022 10:43
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