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

ArrayField button improvement #236

Open
Ducica opened this issue Mar 20, 2024 · 0 comments
Open

ArrayField button improvement #236

Ducica opened this issue Mar 20, 2024 · 0 comments

Comments

@Ducica
Copy link
Contributor

Ducica commented Mar 20, 2024

Latest version.

Arrayfield, should be passed also addButtonClassName prop by which you can override the hardcoded values

className={addButtonClassName ?? "align-self-end mt-15"}

addButtonClassName default value undefined.

As it is now, sometimes you can have a weird gap to the top that is impossible to override as it is basically inline style. Plus not having any specific classname to the add button, makes it hard to target specifically array field add buttons, without accidentally catching other buttons that you have in the app by this selector.

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