Open SebastianStehle opened 3 years ago
The principles are still not followed. Just a few examples:
See: https://getbootstrap.com/docs/5.0/components/dropdowns/#headers
Fixed these issues:
I would not focus too much on the text-white thing. The important aspect is that the components do not rely on utility classes to work properly.
of course you can use them to make adjustments when they are used in a composition, e.g. setting the margin for a button when used inside a pricing card.
Hi there Removed some of the unnecessary utility classes https://github.com/Face44/theme/commit/02dba63154f2d18c9b2cbeae5b5e188245504156
I just want to point out the implementation principles again:
Follow the sass principles.
Override bootstrap component.
breadcrumb-steps
for a custom breadcrumb design.Examples where it has not been followed:
Use bootstrap variables.
Bootstrap overrides a lot of variables you can override., Override them in the
_bootstrap-vars.scss
file and use existing variables from _vars. For example the modal dialog has a lot of variables you can use.If there is no variable override a bootstrap default and reuse existing variables. For example if you want that the modal header has the same padding as the modal footer you can do that with the following snippet:
Use utilities classes only when it makes sense.
These component has a few issues:
rounded
instead of setting the bootstrap var. Why should this badge have another border-radius`?text-muted
. Why should this badge have another color?There are dozens of problems like this. The problem is that you can easily forget to add these classes which will lead into inconsistent design.
Use existing components instead of implementing new components.
For example new list examples have been introduced.