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

Improves PopUpPanel #835

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Improves PopUpPanel #835

merged 1 commit into from
Jan 3, 2024

Conversation

Lysander
Copy link
Collaborator

@Lysander Lysander commented Jan 2, 2024

  • extends arrow-factory to take some offset-parameter alongside to the size parameter that is meant for changing width and height
  • improves default styling, so that the arrow is located behind the panels content
  • adds, corrects or improves API- and prose-documentation regarding the PopUpPanel usage, arrow-usage or middleware-usage.

This can be tested with the following snippet. Just paste it somewhere into the headless-demo:

popOver {
	popOverButton(classes = "mr-3 mt-2") {
		+"Click me"
	}

	popOverPanel("z-30 bg-gray-100") {
		arrow("w-10 h-10", 25)

		div("p-3 py-4") {
			+"With Arrow Beneath Text!"
		}

	}
}

@Lysander Lysander requested a review from metin-kale January 2, 2024 15:51
@Lysander Lysander self-assigned this Jan 2, 2024
@Lysander Lysander added api improvement headless All about headless components and foundations labels Jan 2, 2024
@Lysander Lysander added this to the 1.0-RC13 milestone Jan 2, 2024
- extends `arrow`-factory to take some `offset`-parameter alongside to the size parameter that is meant for changing width and height
- improves default styling, so that the arrow is located behind the panels content
- adds, corrects or improves API- and prose-documentation regarding the `PopUpPanel` usage, `arrow`-usage or `middleware`-usage.
@Lysander Lysander force-pushed the chausknecht/improvePopUpPanel branch from 11a8393 to e64d5dc Compare January 2, 2024 15:52
@Lysander Lysander merged commit 3c42185 into master Jan 3, 2024
2 checks passed
@Lysander Lysander deleted the chausknecht/improvePopUpPanel branch January 3, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api improvement headless All about headless components and foundations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants