Closed jost-s closed 4 years ago
Hi @jost-s,
Sorry for the late reply. I'm a little bit busy recently.
That's an interesting feature, and it reminds me of the input icon (placeholder) in some UI designs (screenshot below) --
The ETA of the next release (v.1.1.3) is by next Monday. I'd suggest we come back to this feature after that.
Hi @phoenixwong,
no worries at all, now it's my turn to reply late.
Yes, that's the idea, a familiar icon that indicates what to expect of this input field.
Great, thanks!
Hi @jost-s,
Your PR give me some inspiration -- come to think about it, there are three suitable places for icon "slots" (image below) --
Icon No.1 and 2 are already there, No.3 doesn't exist yet, but we can make some room for it if necessary. π€
Yeah, of course we can. 1 + 2 are obvious, should 3 be an additional icon/action or an alternative position for the dropdown button?
-------- Mensaje original -------- On 18 jun. 2020 17:30, Phoenix Wong escribiΓ³:
Hi @jost-s,
Your PR give me some inspiration -- come to think about it, there are three suitable places for icon "slots" (image below) --
Icon No.1 and 2 are already there, No.3 doesn't exist yet, but we can make some room for it if necessary. π€
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
No.3 is more like a decoration or hint. I imagine users can put any icon/image they want to represent the purpose of the input.
E.g., a clock, a bell, a stopwatch, or even a unicorn if they wish. π¦
Okay, now I'm convinced, everyone needs a unicorn in their app! π
I'll push an update for you to review in the next couple of days. I was ill during the last week and will be back to work on Monday.
-------- Mensaje original -------- On 20 jun. 2020 12:08, Phoenix Wong escribiΓ³:
No.3 is more like a decoration or hint. I imagine users can put any icon/image they want to represent the purpose of the input.
E.g., a clock, a bell, a stopwatch, or even a unicorn if they wish. π¦
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
No hurries. Wishing you a speedy recovery! (The magical powers of this unicorn will ensure you feel better soon! LOL)
Hi @phoenixwong, I've added the slot for a custom close button. The prepend icon is not trivial, in order for it to be solid and flexible I need to change the main span
to display: inline-flex
, and it entails quite a lot of changes in styles and I need to cater for a disabled input field etc.
I prefer to do that in another version, alright?
Hi @jost-s, thanks for the update and glad to see you back!
The alpha branch got updated along with the last version (1.1.3), so this PR some code conflicts against it. Can you pull the latest code and resolve the conflicts? Thanks!
The "Merge pull request" button on my end is disabled due to the conflicts. I cannot merge it until it got resolved.
Hi @phoenixwong, thank you, I'm glad to be back π
I've resolved conflicts for this PR. It took me some time to find the CSS to align custom icon and default characters. I think it works fine now.
Regarding the dropdown button, I prefer to show it even when the input is not active, as an indicator of the type of input (as long as we don't have a unicorn icon slot π). What do you think?
About the dropdown button visibility -- Yup, I'll consider it. Need to do some tests to find the balance for the icon(s) display.
Thanks for the hard work! :clap:
You're welcome! Sure, try it out, thanks for considering it.
Hi @jost-s,
Just letting you know that I added a new fixed-dropdown-button
property in v.1.1.4 for always show the dropdown button (default to false
).
Hi @phoenixwong,
I just saw it - brilliant! Super flexible and configurable and looks great, thanks a bunch π
Hi @phoenixwong, I've added a slot for a custom icon for the dropdown button and updated the samples page. Let me know what you think π