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

Bootstrap 5 support #646

Merged
merged 55 commits into from
Aug 24, 2021
Merged

Bootstrap 5 support #646

merged 55 commits into from
Aug 24, 2021

Conversation

tcbegley
Copy link
Collaborator

@tcbegley tcbegley commented Aug 15, 2021

This PR adds support for Bootstrap 5.

Switching from reactstrap to React-Bootstrap behind the scenes as development has slowed on reactstrap and it's not clear when they will support Bootstrap 5, if ever.

TODO:
Components

  • Alert
  • Badge
  • Button
  • ButtonGroup
  • Card
  • CardBody
  • CardFooter
  • CardGroup
  • CardHeader
  • CardImg
  • CardImgOverlay
  • CardLink
  • Carousel
  • Checkbox
  • Checklist
  • Col
  • Collapse
  • Container
  • DropdownMenu
  • DropdownMenuItem
  • Fade
  • Form
  • FormFeedback
  • FormGroup
  • FormText
  • Input
  • InputGroup
  • InputGroupText
  • Label
  • ListGroup
  • ListGroupItem
  • Modal
  • ModalBody
  • ModalFooter
  • ModalHeader
  • Nav
  • Navbar
  • NavbarBrand
  • NavbarSimple
  • NavbarToggler
  • NavItem
  • NavLink
  • Popover
  • PopoverBody
  • PopoverHeader
  • Progress
  • RadioButton
  • RadioItems
  • Row
  • Select
  • Spinner
  • Tab / Tabs
  • Table
  • Textarea
  • Toast
  • Tooltip

New components
Some are new in Bootstrap 5, others are long outstanding omissions

  • Accordion
  • Breadcrumbs
  • FormFloating
  • ModalTitle
  • Offcanvas
  • Pagination

Deleted components

  • CardColumns
  • CardDeck
  • InputGroupAddon
  • Jumbotron
  • ListGroupItemHeading
  • ListGroupItemText

Themes

  • Update CDN links in themes.py, themes.jl, themes.R

Misc

  • Fix doc snippet tests (className -> class_name is the issue here)
  • Make sure size and bs_size are used consistently across components.
  • Sort out react-bootstrap imports
  • Check docstrings all make sense (Leave this for later)
  • Check Popover and Tooltip props and defaults are all used correctly.

tcbegley and others added 30 commits August 13, 2021 21:42
* Added offcanvas components

* Offcanvas doc snippets

* Added offcanvas documentation

* Fixed long text issue

* Added react-bootstrap

* Added offcanvas

* Added offcanvas tests

* Added js tests for offcanvas

* Addition of new pagination component

* Combined offcanvas into single component

* Formatting

* ABetter handling of pagination component

* Updated pagination docs

* Removed invalid code

* Updated npm demo to Bootstrap 5

* Updated pagination docs to include R and jl

* Updated pagination tests

* Fixed callbacks

* Reverted to 5.0.2 to avoid issues with offcanvas backdrop until resolved

* Fixed offcanvas tests

* Tidy up
* Accordion component and js test

* Added documentation for accordion

* R and Julia examples

* Fixed h2 formatting issues

* Added accordion folder for flake8

* Update demo/Demo.js

Co-authored-by: glsdown <52132406+glsdown@users.noreply.github.com>

Co-authored-by: Tom Begley <tomcbegley@gmail.com>
* Updated list-group component

* Updated list-group docs
tcbegley and others added 14 commits August 18, 2021 22:14
* Monkeypatch doc tests

* Card

* Nav and NavBar  Update to Collapse to remove navbar prop

* fixed Card.test.js for Card body test

* updated docs for Navbar example.
Also updated julia and R snippets

* updates to Navbar and Collapse after review

* updated index for deleted NavbarCollapse

* lint and black

Co-authored-by: tcbegley <tomcbegley@gmail.com>
@tcbegley tcbegley mentioned this pull request Aug 22, 2021
73 tasks
@tcbegley tcbegley merged commit 0e6ac77 into v1 Aug 24, 2021
@tcbegley tcbegley deleted the react-bootstrap branch August 24, 2021 06:49
tcbegley added a commit that referenced this pull request Sep 5, 2021
* Alert

* Badge

* Button

* ButtonGroup

* Carousel

* Collapse

* Fade

* Add shim for html components that don't have class_name defined yet

* Update block button docs

* Update docs for Bootstrap 5

* RIP Jumbotron

* Add react-bootstrap beta

* Layout

* Docs fix

* Label

* Clean up example

* Monkeypatch doc tests

* New components - Offcanvas and pagination (#643)

* Added offcanvas components

* Offcanvas doc snippets

* Added offcanvas documentation

* Fixed long text issue

* Added react-bootstrap

* Added offcanvas

* Added offcanvas tests

* Added js tests for offcanvas

* Addition of new pagination component

* Combined offcanvas into single component

* Formatting

* ABetter handling of pagination component

* Updated pagination docs

* Removed invalid code

* Updated npm demo to Bootstrap 5

* Updated pagination docs to include R and jl

* Updated pagination tests

* Fixed callbacks

* Reverted to 5.0.2 to avoid issues with offcanvas backdrop until resolved

* Fixed offcanvas tests

* Tidy up

* Progress

* Format tests

* Spinner

* Table

* Toast

* New component Accordion (#645)

* Accordion component and js test

* Added documentation for accordion

* R and Julia examples

* Fixed h2 formatting issues

* Added accordion folder for flake8

* Update demo/Demo.js

Co-authored-by: glsdown <52132406+glsdown@users.noreply.github.com>

Co-authored-by: Tom Begley <tomcbegley@gmail.com>

* flake8 config

* List group updated to Bootstrap 5 (#647)

* Updated list-group component

* Updated list-group docs

* Bug fixes

* Tabs

* Form

* Form updates + examples

* Checklist / RadioItems

* Select

* themes

* BS5 updates for docs

* Fix doc tests

* InputGroup

* Fix JS tests

* Checkbox/Radio

* format js

* Modal

* Modal docs

* Fix format command

* Card, Nav and Navbar (#648)

* Monkeypatch doc tests

* Card

* Nav and NavBar  Update to Collapse to remove navbar prop

* fixed Card.test.js for Card body test

* updated docs for Navbar example.
Also updated julia and R snippets

* updates to Navbar and Collapse after review

* updated index for deleted NavbarCollapse

* lint and black

Co-authored-by: tcbegley <tomcbegley@gmail.com>

* DropdownMenu

* NavbarToggler

* Tooltip+Popover

* Consistent imports

* Fix accordion tests

* Initial breadcrumb component

* Set accordion to first component

* Format code

* Update Breadcrumb

* Snippet test fixes for breadcrumb

* Popover - minor prop updates (#652)

* Use size prop consistently

Co-authored-by: glsdown <52132406+glsdown@users.noreply.github.com>
Co-authored-by: AnnMarieW <72614349+AnnMarieW@users.noreply.github.com>
This was referenced Sep 17, 2021
@tcbegley tcbegley mentioned this pull request Oct 9, 2021
@tcbegley tcbegley mentioned this pull request Oct 19, 2021
tcbegley added a commit that referenced this pull request Oct 19, 2021
* Alert

* Badge

* Button

* ButtonGroup

* Carousel

* Collapse

* Fade

* Add shim for html components that don't have class_name defined yet

* Update block button docs

* Update docs for Bootstrap 5

* RIP Jumbotron

* Add react-bootstrap beta

* Layout

* Docs fix

* Label

* Clean up example

* Monkeypatch doc tests

* New components - Offcanvas and pagination (#643)

* Added offcanvas components

* Offcanvas doc snippets

* Added offcanvas documentation

* Fixed long text issue

* Added react-bootstrap

* Added offcanvas

* Added offcanvas tests

* Added js tests for offcanvas

* Addition of new pagination component

* Combined offcanvas into single component

* Formatting

* ABetter handling of pagination component

* Updated pagination docs

* Removed invalid code

* Updated npm demo to Bootstrap 5

* Updated pagination docs to include R and jl

* Updated pagination tests

* Fixed callbacks

* Reverted to 5.0.2 to avoid issues with offcanvas backdrop until resolved

* Fixed offcanvas tests

* Tidy up

* Progress

* Format tests

* Spinner

* Table

* Toast

* New component Accordion (#645)

* Accordion component and js test

* Added documentation for accordion

* R and Julia examples

* Fixed h2 formatting issues

* Added accordion folder for flake8

* Update demo/Demo.js

Co-authored-by: glsdown <52132406+glsdown@users.noreply.github.com>

Co-authored-by: Tom Begley <tomcbegley@gmail.com>

* flake8 config

* List group updated to Bootstrap 5 (#647)

* Updated list-group component

* Updated list-group docs

* Bug fixes

* Tabs

* Form

* Form updates + examples

* Checklist / RadioItems

* Select

* themes

* BS5 updates for docs

* Fix doc tests

* InputGroup

* Fix JS tests

* Checkbox/Radio

* format js

* Modal

* Modal docs

* Fix format command

* Card, Nav and Navbar (#648)

* Monkeypatch doc tests

* Card

* Nav and NavBar  Update to Collapse to remove navbar prop

* fixed Card.test.js for Card body test

* updated docs for Navbar example.
Also updated julia and R snippets

* updates to Navbar and Collapse after review

* updated index for deleted NavbarCollapse

* lint and black

Co-authored-by: tcbegley <tomcbegley@gmail.com>

* DropdownMenu

* NavbarToggler

* Tooltip+Popover

* Consistent imports

* Fix accordion tests

* Initial breadcrumb component

* Set accordion to first component

* Format code

* Update Breadcrumb

* Snippet test fixes for breadcrumb

* Popover - minor prop updates (#652)

* Use size prop consistently

Co-authored-by: glsdown <52132406+glsdown@users.noreply.github.com>
Co-authored-by: AnnMarieW <72614349+AnnMarieW@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Bootstrap v5 support
3 participants