07akioni

Results 254 comments of 07akioni

After esc is pressed in filterable select, the select box should still be focused. ![image](https://user-images.githubusercontent.com/18677354/155884147-630159d6-dae5-4fb0-b21e-725bea9e0eac.png) I think maybe provide a prop to let user choose whether to focus input immediately...

> Okay, sure. Any suggestion for the name of the prop? 😊 Maybe `focus-input-when-filterable`? Not quite sure.

> @amadeus711 it's kind of a `ToggleButton` which indicates if the action that the button triggers was already triggered before. In my case, I have a button to like a...

> Yeah, the naming is debatable but I chose `pressed` because it reuses the pressed style. `Focused` is in my opinion something different and rather means that the focus of...

> @07akioni okay, shall I rename the property to `focused` then? So why don't just call focus method? You want to keep the state if other thing is focused?

> Yep, just imagine the Like button which can be toggled/active/focused/pressed because you already liked the item or it looks normal. I don't think focus status match the scene. In...

> That unfortunately solves it only for that one specific combination of button types but doesn't work for `tertiary` buttons. So it would be great if there would be a...

> Eventually I came up by wrapping the button in a custom component and just pass the class `n-button--pressed` to the button if the prop is set. > > I...

任意位置可能有点麻烦,但是感觉可以想办法允许调整