helloflask / bootstrap-flask

Bootstrap 4 & 5 helper for your Flask projects.
https://bootstrap-flask.readthedocs.io
Other
1.1k stars 189 forks source link

WIP extend nav and breadcrumb badge support and whitespace reduction #338

Open PanderMusubi opened 8 months ago

PanderMusubi commented 8 months ago

The result of this PR is a huge reduction of whitespace in navigation items and breadcrumb items.

This supports the development of https://github.com/helloflask/bootstrap-flask/issues/336 and https://github.com/helloflask/bootstrap-flask/issues/191

I would like to suggest dropping the underscore of the _badge parameter in render_nav_item, but that will break backward compatibility. However, the other badge parameters will also not need one.

Additional question, the badge is currently shown as white text on white background. How to fix this?

After these questions have been answered, documentation and tests will be added.