You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We're currently lazy loading the OramaSearchButton because it (or @orama/react-components) is very heavy on the bundle. The button has a bunch of JS code related to theme which isn't so great from our perspective - we manage it all via the CSS variables. It is also quite difficult to style like our normal buttons
Describe the solution you'd like
I would like to use my own Button component which triggers the OramaSearchBox when it is clicked.
This could be done with a hook that accesses the globalContext or some other method to open the OramaSearchBox.
Describe alternatives you've considered
Styling the button like our normal buttons via the css variables. The sizes you provide do not align with our sizes. The focus state does not match, etc. We were able to mostly force it, but the height is slightly off and we can't get the focus state to match as there are no CSS variables for it. The biggest issue is the lazy loading due to the bundle size.
Thanks for building Orama and for considering this request.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We're currently lazy loading the
OramaSearchButton
because it (or@orama/react-components
) is very heavy on the bundle. The button has a bunch of JS code related to theme which isn't so great from our perspective - we manage it all via the CSS variables. It is also quite difficult to style like our normal buttonsDescribe the solution you'd like
I would like to use my own
Button
component which triggers theOramaSearchBox
when it is clicked.This could be done with a hook that accesses the
globalContext
or some other method toopen
theOramaSearchBox
.Describe alternatives you've considered
Styling the button like our normal buttons via the css variables. The sizes you provide do not align with our sizes. The focus state does not match, etc. We were able to mostly force it, but the height is slightly off and we can't get the focus state to match as there are no CSS variables for it. The biggest issue is the lazy loading due to the bundle size.
Thanks for building Orama and for considering this request.
The text was updated successfully, but these errors were encountered: