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

Refactor grid and flexbox layout components #1897

Merged
merged 76 commits into from
Jun 23, 2024
Merged

Conversation

sebnitu
Copy link
Owner

@sebnitu sebnitu commented Jun 21, 2024

What changed?

This PR is a complete overhaul of Vrembem's layout components. It removes all previous components that were primarily used as their own layout components for two more generic all purpose Grid and Flex layout components along with some shared use utilities for gap, order, justify, align and place properties.

New components

  • @vrembem/grid
  • @vrembem/flex

New utilities

  • gap
  • justify
  • align
  • place
  • order
  • spacing

Component changes

  • Improved some menu component and removed some inconsistencies.
  • Updated form-control var values.
  • Updated base h1 font-size default.

Deprecated

  • @vrembem/grid component which used flexbox and negative margins to achieve a column layout. This is now replaced with the grid layout based grid component.
  • @vrembem/level component removed in favor of new flex component.
  • @vrembem/media component removed in favor of new flex component.
  • flex utilities. These have been incorporated into the new flex component.
  • gap, gap-x and gap-y utilities have been refactored to control the gap property for grid and flexbox components. New spacing utility has been added as a replacement for vertical top margin spacing and gap-x has been deprecated.

Documentation improvements

  • Added demo.js, a JS module for changing variant classes in code examples.
  • Added CSS tabs slot option to <CodeExample>.
  • Applied menu_size_sm modifier to "On this page" menu.
  • Added the layout status to package docs.
  • Updated headerAnchor module to improve styles and use icon for hash.
  • Added dark/light themes to box class along with new box-alt class.
  • Updated layout styles.

Fixes: #1895

@sebnitu sebnitu changed the title Refactor grid and flex utility components Refactor grid and flexbox layout components Jun 23, 2024
@sebnitu sebnitu merged commit c992b6e into next Jun 23, 2024
2 checks passed
@sebnitu sebnitu deleted the next-add-grid-utility branch June 23, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Next Related to the next branch PR: feat PR: refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant