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

Update the components #123

Merged
merged 26 commits into from
Jul 1, 2023
Merged

Update the components #123

merged 26 commits into from
Jul 1, 2023

Conversation

mattesmohr
Copy link
Member

@mattesmohr mattesmohr commented Jun 16, 2023

This merge brings some new features and fixes issues of the minifier.

Stack column

The stack column component has been removed. You can now use the following method to set the width and the offset of a view.

Card {
}
.frame(width: .eleven, offset: .one)

Padding and margin

Also you can now set the padding and the margin of a view by using the following methods.

Card {
}
.padding()

Card {
}
.padding(insets: .horizontal)

Card {
}
.padding(insets: [.top, .left], length: .small)

Navigation

A new component has been introduced. Use the navigation component to override the handling and the style for the list and its descendants.

Navigation {
   List(direction: .vertical) {
      ListRow {
         Link(destination: "/dashboard/index") {
           Text {
           }
	}
     }
   }
}

The name declaration group is already taken for the vector element, therefore the htmlkit component needs a new name declaration.
The margin for the modal gets neutralised by the css reset, but the modal dialog should always be centered.
@mattesmohr mattesmohr merged commit d166ef5 into main Jul 1, 2023
1 check passed
@mattesmohr mattesmohr deleted the upgrade/htmlkit-3.0-5 branch July 1, 2023 19:23
@mattesmohr mattesmohr changed the title Upgrade the package Update the components Feb 4, 2024
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.

None yet

1 participant