Current section

48 Versions

Jump to

Compare versions

8 files changed
+17 additions
-10 deletions
  @@ -1,5 +1,12 @@
1 1 # Changelog
2 2
3 + ## 0.3.1
4 +
5 + Replaced underscores in HTML element attributes with dashes because Phoenix LiveView 0.19 no longer does automatic substitution.
6 +
7 + Updated components:
8 + - `select`: attr `prompt` is ignored when `is_multiple` is also used. This prevents `Phoenix.HTML.Form.multiple_select/4` from raising an error.
9 +
3 10 ## 0.3.0
4 11
5 12 Breaking change: `action_list_item` now always renders a checkbox group, also when `is_multiple_select` is set on the list items. This change makes handling form data in events more consistent: the data will always consist of a list of checkbox values.
  @@ -43,4 +43,4 @@
43 43 {<<"optional">>,false},
44 44 {<<"repository">>,<<"hexpm">>},
45 45 {<<"requirement">>,<<"~> 1.4">>}]]}.
46 - {<<"version">>,<<"0.3.0">>}.
46 + {<<"version">>,<<"0.3.1">>}.
unknownlib/component.ex
File is too large to be displayed (100 KB limit).
  @@ -383,7 +383,7 @@ defmodule PrimerLive.Theme do
383 383 ...> dark_theme: "dark_high_contrast"
384 384 ...> }
385 385 ...> )
386 - [data_color_mode: "light", data_light_theme: "light_high_contrast", data_dark_theme: "dark_high_contrast"]
386 + ["data-color-mode": "light", "data-light-theme": "light_high_contrast", "data-dark-theme": "dark_high_contrast"]
387 387
388 388 iex> PrimerLive.Theme.html_attributes(
389 389 ...> %{
  @@ -394,7 +394,7 @@ defmodule PrimerLive.Theme do
394 394 ...> dark_theme: "dark"
395 395 ...> }
396 396 ...> )
397 - [data_color_mode: "auto", data_light_theme: "light", data_dark_theme: "dark"]
397 + ["data-color-mode": "auto", "data-light-theme": "light", "data-dark-theme": "dark"]
398 398
399 399 iex> PrimerLive.Theme.html_attributes(
400 400 ...> %{
  @@ -406,7 +406,7 @@ defmodule PrimerLive.Theme do
406 406 ...> dark_theme: "dark"
407 407 ...> }
408 408 ...> )
409 - [data_color_mode: "auto", data_light_theme: "light_high_contrast", data_dark_theme: "dark"]
409 + ["data-color-mode": "auto", "data-light-theme": "light_high_contrast", "data-dark-theme": "dark"]
410 410
411 411 iex> PrimerLive.Theme.html_attributes(
412 412 ...> %{
  @@ -415,7 +415,7 @@ defmodule PrimerLive.Theme do
415 415 ...> color_mode: "auto",
416 416 ...> }
417 417 ...> )
418 - [data_color_mode: "auto"]
418 + ["data-color-mode": "auto"]
419 419 """
420 420
421 421 def html_attributes(theme_state, default_theme_state) do
  @@ -424,9 +424,9 @@ defmodule PrimerLive.Theme do
424 424 data_dark_theme = theme_state[:dark_theme] || default_theme_state[:dark_theme]
425 425
426 426 PrimerLive.Helpers.AttributeHelpers.append_attributes([
427 - data_color_mode && [data_color_mode: data_color_mode],
428 - data_light_theme && [data_light_theme: data_light_theme],
429 - data_dark_theme && [data_dark_theme: data_dark_theme]
427 + data_color_mode && ["data-color-mode": data_color_mode],
428 + data_light_theme && ["data-light-theme": data_light_theme],
429 + data_dark_theme && ["data-dark-theme": data_dark_theme]
430 430 ])
431 431 end
  @@ -4,7 +4,7 @@ defmodule PrimerLive.MixProject do
4 4 def project do
5 5 [
6 6 app: :primer_live,
7 - version: "0.3.0",
7 + version: "0.3.1",
8 8 homepage_url: "https://github.com/ArthurClemens/primer_live",
9 9 description: description(),
10 10 package: package(),
Loading more files…