openproject-primer_view_components 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/components/primer/beta/breadcrumbs.rb +3 -2
- data/lib/primer/view_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0fa76eaed82e32a169e106a7c5331e364410a77b3e90f16be74b7393f5f2482
|
4
|
+
data.tar.gz: f4ea4ac9f39c7bea4f6d252c6d76f2acb829df24883f7f1c9784a3acd2838d58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a93114a05144027314da5b83f035e087984736a983983da809047e9ddbb46fa46801f39ec3ec84f8cd18e73d21945a4ae477b03a81d1fb4d09c0bcce0e88d2ee
|
7
|
+
data.tar.gz: 9ff8e8f2547b22832e5900d9eb19219a1e19a7c7c5d30aa6b36e834f524518ada9f5e7d8ad9bc4524bc19dc01865598d991f835dd58fa4a356c685521d200e60
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.28.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#102](https://github.com/opf/primer_view_components/pull/102) [`b1bd1e2`](https://github.com/opf/primer_view_components/commit/b1bd1e26ef02172fdfb5780d3b109fad9a29bd65) Thanks [@HDinger](https://github.com/HDinger)! - Set target attribute on the actual link element in the Breadcrumb instead of the list element above
|
8
|
+
|
3
9
|
## 0.28.0
|
4
10
|
|
5
11
|
### Minor Changes
|
@@ -48,8 +48,9 @@ module Primer
|
|
48
48
|
class Item < Primer::Component
|
49
49
|
attr_accessor :selected, :href
|
50
50
|
|
51
|
-
def initialize(href:, **system_arguments)
|
51
|
+
def initialize(href:, target: "_self", **system_arguments)
|
52
52
|
@href = href
|
53
|
+
@target = target
|
53
54
|
@system_arguments = deny_tag_argument(**system_arguments)
|
54
55
|
@selected = false
|
55
56
|
|
@@ -58,7 +59,7 @@ module Primer
|
|
58
59
|
end
|
59
60
|
|
60
61
|
def call
|
61
|
-
link_arguments = { href: @href }
|
62
|
+
link_arguments = { href: @href, target: @target }
|
62
63
|
|
63
64
|
if selected
|
64
65
|
link_arguments[:"aria-current"] = "page"
|