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

[core] deprecate Icon, Drawer, Spinner size constant static members #4688

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Apr 29, 2021

Fixes #0000

Changes proposed in this pull request:

In conjunction with upcoming changes in v4.0 where class components are being refactored into function components (like #4681), we must remove support for static members and provide those constants as new symbols in the public API.

Deprecated:

  • Icon.SIZE_STANDARD
  • Icon.SIZE_LARGE
  • Drawer.SIZE_SMALL
  • Drawer.SIZE_STANDARD
  • Drawer.SIZE_LARGE
  • Spinner.SIZE_SMALL
  • Spinner.SIZE_STANDARD
  • Spinner.SIZE_LARGE

Added:

  • IconSize
  • DrawerSize
  • SpinnerSize

Not addressed in this PR:

  • OverflowList.ofType(), Select.ofType(), etc...

@adidahiya
Copy link
Contributor Author

Need to add spinner size constants

@adidahiya adidahiya changed the title [core] deprecate Icon and Drawer static constants for size [core] deprecate Icon, Drawer, Spinner static constants for size Apr 29, 2021
@adidahiya adidahiya changed the title [core] deprecate Icon, Drawer, Spinner static constants for size [core] deprecate Icon, Drawer, Spinner size constant static members Apr 29, 2021
@blueprint-bot
Copy link

deprecate spinner size constants too

Previews: documentation | landing | table

@adidahiya adidahiya merged commit 7462399 into develop Apr 29, 2021
@adidahiya adidahiya deleted the ad/deprecate-icon-static-members branch April 29, 2021 19:04
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.

2 participants