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

Add default values in Border dataclass #883

Merged
merged 1 commit into from
Jan 15, 2023
Merged

Conversation

zrr1999
Copy link
Contributor

@zrr1999 zrr1999 commented Jan 15, 2023

When I customize the sidebar, I want there to be a dividing line on the right, so I use the Container class and add the border parameter. In this process, I found that the Border class must pass in all four parameters, but I want the effect to be

Border(right=BorderSide(2, colors.PRIMARY))

now it must be

Border(None, BorderSide(2, colors.PRIMARY), None, None)

The pr add default values in Border dataclass.

@CLAassistant
Copy link

CLAassistant commented Jan 15, 2023

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

3 participants