Skip to content

Commit

Permalink
0.3.2 (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurClemens authored May 30, 2023
1 parent 466c8a9 commit 5e799f4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.3.2

Replaced a couple more underscores.

## 0.3.1

Replaced underscores in HTML element attributes with dashes because Phoenix LiveView 0.19 no longer does automatic substitution.
Expand Down
2 changes: 1 addition & 1 deletion assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primer-live",
"version": "0.3.1",
"version": "0.3.2",
"description": "JavaScript and CSS for PrimerLive",
"license": "MIT",
"repository": {},
Expand Down
6 changes: 3 additions & 3 deletions lib/component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ defmodule PrimerLive.Component do
[class: class],
[role: assigns.role],
assigns.aria_label && ["aria-label": assigns.aria_label],
assigns.is_multiple_select and [aria_multiselectable: "true"]
assigns.is_multiple_select and ["aria-multiselectable": "true"]
])

assigns =
Expand Down Expand Up @@ -570,7 +570,7 @@ defmodule PrimerLive.Component do
attributes =
AttributeHelpers.append_attributes(assigns.rest, [
[class: classes.section_divider],
!has_title && [role: "separator", aria_hidden: "true"]
!has_title && [role: "separator", "aria-hidden": "true"]
])

has_title = assigns.title && assigns.title !== []
Expand Down Expand Up @@ -7712,7 +7712,7 @@ defmodule PrimerLive.Component do
AttributeHelpers.append_attributes(item_rest, [
[class: AttributeHelpers.classnames([classes.item, item[:class]])],
!is_selected && [role: "menuitem"],
is_selected && [role: "menuitemcheckbox", aria_checked: "true"],
is_selected && [role: "menuitemcheckbox", "aria-checked": "true"],
is_link && is_disabled && ["aria-disabled": "true"],
!is_link && is_disabled && [disabled: "true"]
])
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule PrimerLive.MixProject do
def project do
[
app: :primer_live,
version: "0.3.1",
version: "0.3.2",
homepage_url: "https://github.com/ArthurClemens/primer_live",
description: description(),
package: package(),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "primer-live",
"version": "0.3.1",
"version": "0.3.2",
"description": "JavaScript and CSS for PrimerLive",
"license": "MIT",
"module": "./priv/static/primer-live.esm.js",
Expand Down

0 comments on commit 5e799f4

Please sign in to comment.