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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 425fcc627a600df1c426fc749d61f9cfd7603c32d254c5dc239db1e786148010
4
- data.tar.gz: c6d253b436ed440033c986d9b983dedbff4c5878328215550d37a7066ce13a5f
3
+ metadata.gz: b0fa76eaed82e32a169e106a7c5331e364410a77b3e90f16be74b7393f5f2482
4
+ data.tar.gz: f4ea4ac9f39c7bea4f6d252c6d76f2acb829df24883f7f1c9784a3acd2838d58
5
5
  SHA512:
6
- metadata.gz: d5dd04c4c19bff3bb928ab156b8b3a45ccb91fda6cdcefc517f0d2f3c1a352749fca021c6286ce38ac822f7c70b81cc2b55dfca2141714e7072d4b49c4462cff
7
- data.tar.gz: 952bba99b9fc22d9397dba48a7e79a04363c5c6d71c9d942cdc4e2d5504aea432fe4aabc292529c515ce37b1f0d0f69c28cef636a2e26470be4e466a360961da
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"
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 28
9
- PATCH = 0
9
+ PATCH = 1
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source