From d13fe874bafb4ed1f524af4d0ceeeba65e721cb2 Mon Sep 17 00:00:00 2001 From: Angelika Tyborska Date: Tue, 2 Jul 2024 15:04:48 +0200 Subject: [PATCH] New sizing values; fix tests --- lib/bitstyles_phoenix.ex | 2 +- lib/bitstyles_phoenix/alpine3/dropdown.ex | 4 +- lib/bitstyles_phoenix/alpine3/sidebar.ex | 20 ++++---- lib/bitstyles_phoenix/bitstyles.ex | 50 ++++++++++++++++++- lib/bitstyles_phoenix/component/avatar.ex | 4 +- .../component/breadcrumbs.ex | 40 +++++++-------- lib/bitstyles_phoenix/component/card.ex | 4 +- .../component/description_list.ex | 12 ++--- lib/bitstyles_phoenix/component/dropdown.ex | 14 +++--- lib/bitstyles_phoenix/component/error.ex | 4 +- lib/bitstyles_phoenix/component/flash.ex | 14 +++--- lib/bitstyles_phoenix/component/form.ex | 2 +- lib/bitstyles_phoenix/component/heading.ex | 14 +++--- lib/bitstyles_phoenix/component/modal.ex | 10 ++-- lib/bitstyles_phoenix/component/sidebar.ex | 32 ++++++------ lib/bitstyles_phoenix/component/tabs.ex | 20 ++++---- test/bitstyles_phoenix/bitstyles_test.exs | 37 ++++++++++++-- 17 files changed, 181 insertions(+), 102 deletions(-) diff --git a/lib/bitstyles_phoenix.ex b/lib/bitstyles_phoenix.ex index ea62c15..61a143c 100644 --- a/lib/bitstyles_phoenix.ex +++ b/lib/bitstyles_phoenix.ex @@ -109,7 +109,7 @@ defmodule BitstylesPhoenix do You can control how required labels are rendered. By default you will get this appended to your labels if the input is required: ```html - + ``` You can override it by specifying your own component to render the required labels. The component will get the form and the field as assigns, as well as any optional parameters you pass in the MFA as `@opts`. diff --git a/lib/bitstyles_phoenix/alpine3/dropdown.ex b/lib/bitstyles_phoenix/alpine3/dropdown.ex index fe1c3cc..eff8370 100644 --- a/lib/bitstyles_phoenix/alpine3/dropdown.ex +++ b/lib/bitstyles_phoenix/alpine3/dropdown.ex @@ -56,7 +56,7 @@ defmodule BitstylesPhoenix.Alpine3.Dropdown do -