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

Text Align with style property #90

Open
parmarravi opened this issue Nov 6, 2022 · 0 comments
Open

Text Align with style property #90

parmarravi opened this issue Nov 6, 2022 · 0 comments

Comments

@parmarravi
Copy link

I want to align the text to auto or center but the text default alignment is set to align-self: flex-end; How to change this property with style prop?
Screenshot from 2022-11-06 10-37-10
Screenshot from 2022-11-06 10-37-19

Code:


<ReactSearchAutocomplete
                                        items={cityList}
                                        onSearch={searchCityHandler}
                                        onSelect={handleOnSelect}
                                        showIcon={false}
                                        placeholder="City"
                                        autoFocus={false}
                                        formatResult={formatResult}
                                        fuseOptions={{ keys: ["city"] }}
                                        resultStringKeyName="city"
                                        inputSearchString={cityName == null ? "" : cityName}
                                        styling={{
                                            border: `1px solid ${defaultColours.slate40}`,
                                            borderRadius: "8px",
                                            backgroundColor: "white",
                                            boxShadow: "none",
                                            hoverBackgroundColor: `${lighten(0.64, Theme.blue)}`,
                                            color: `${Theme.blue}`,
                                            alignSelf: "auto",
                                            iconColor: `${Theme.blue}`,
                                            lineColor: `${defaultColours.slate50}`,
                                            placeholderColor: `${defaultColours.slate50}`,
                                            clearIconMargin: "3px 8px 0 0",
                                            zIndex: 4,
                                        }}
                                    />

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

No branches or pull requests

1 participant