Conversation
✅ Deploy Preview for hover-design canceled.
|
pruthvi2103
left a comment
There was a problem hiding this comment.
Some comments, also while testing i found following problems:
During tab navigation, pressing space does not open the select.
| SelectPropsType | ||
| > = ( | ||
| { | ||
| placeholder = "Pick one", |
There was a problem hiding this comment.
Do not keep default placeholders, it results un-intentional behaviour keep it blank
| value, | ||
| height = "40px", | ||
| width = "100%", | ||
| roundness = "0", |
There was a problem hiding this comment.
isnt borderRadius a better name?
| isMulti = false, | ||
| DropIcon, | ||
| error = false, | ||
| nothingFoundLabel = "Nothing Found!", |
There was a problem hiding this comment.
again do not add default text here
| onDropDownClose = () => {}, | ||
| onDropDownOpen = () => {}, |
There was a problem hiding this comment.
nitpick: do not add default value here, if its not provided let it be undefined
| export * from "./components/Tab"; | ||
| export * from "./components/Avatar"; | ||
| export * from "./components/Table"; | ||
| export * from "./components/ComboBox"; |
There was a problem hiding this comment.
we decided to change name to Select right?
There was a problem hiding this comment.
forgot to rename the folder
|
|
||
| // Reload only if ref or handler changes | ||
| }, [ref, handler]); | ||
| }, [ref, handler, isCallbackEnabled]); |
| export const ArrowDown = () => { | ||
| return ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width={18} | ||
| height={18} | ||
| viewBox="0 0 24 24" | ||
| strokeWidth={2} | ||
| stroke="currentColor" | ||
| fill="none" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| > | ||
| <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
| <line x1={12} y1={5} x2={12} y2={19}></line> | ||
| <line x1={18} y1={13} x2={12} y2={19}></line> | ||
| <line x1={6} y1={13} x2={12} y2={19}></line> | ||
| </svg> | ||
| ); | ||
| }; | ||
|
|
||
| export const Clear = () => { | ||
| return ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| className="icon icon-tabler icon-tabler-circle-x" | ||
| width={18} | ||
| height={18} | ||
| viewBox="0 0 24 24" | ||
| strokeWidth="2" | ||
| stroke="currentColor" | ||
| fill="none" | ||
| strokeLinecap="round" | ||
| strokeLinejoin="round" | ||
| > | ||
| <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> | ||
| <circle cx={12} cy={12} r={9}></circle> | ||
| <path d="M10 10l4 4m0 -4l-4 4"></path> | ||
| </svg> | ||
| ); | ||
| }; |
There was a problem hiding this comment.
shift this to lib/src/components/_internal/Icons
Select Component
Description
Select component is a combobox that supports selecting or searching and selecting and many more things
Motivation and Context
A versatile select box that support many inbuilt functionalities
How Has This Been Tested?
Manual and Local Build successful
Screenshots (if appropriate):
Types of changes
Checklist: