primer_view_components 0.36.4 → 0.36.5

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.
@@ -9,8 +9,8 @@
9
9
  <% if trailing_visual %>
10
10
  <span class="Button-visual Button-trailingVisual">
11
11
  <% if @trailing_visual_counter %>
12
+ <span class="d-flex" aria-hidden="true"><%= trailing_visual %></span>
12
13
  <span class="sr-only">(<%= trailing_visual %>)</span>
13
- <%= trailing_visual %>
14
14
  <% else %>
15
15
  <%= trailing_visual %>
16
16
  <% end %>
@@ -70,7 +70,7 @@ module Primer
70
70
  label: Primer::Beta::Label,
71
71
  counter: lambda { |**system_arguments|
72
72
  @trailing_visual_counter = true
73
- Primer::Beta::Counter.new("aria-hidden": true, **system_arguments)
73
+ Primer::Beta::Counter.new(**system_arguments)
74
74
  }
75
75
  }
76
76
 
@@ -108,6 +108,7 @@ module Primer
108
108
  # @param align_content [Symbol] <%= one_of(Primer::Beta::Button::ALIGN_CONTENT_OPTIONS) %>
109
109
  # @param tag [Symbol] (Primer::Beta::BaseButton::DEFAULT_TAG) <%= one_of(Primer::Beta::BaseButton::TAG_OPTIONS) %>
110
110
  # @param type [Symbol] (Primer::Beta::BaseButton::DEFAULT_TYPE) <%= one_of(Primer::Beta::BaseButton::TYPE_OPTIONS) %>
111
+ # @param inactive [Boolean] Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button.
111
112
  # @param disabled [Boolean] Whether or not the button is disabled. If true, this option forces `tag:` to `:button`.
112
113
  # @param label_wrap [Boolean] Whether or not the button label text wraps and the button height expands.
113
114
  # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
@@ -6,7 +6,7 @@ module Primer
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 36
9
- PATCH = 4
9
+ PATCH = 5
10
10
 
11
11
  STRING = [MAJOR, MINOR, PATCH].join(".")
12
12
  end
@@ -65,7 +65,7 @@ module Primer
65
65
 
66
66
  # @label Tooltip with Primer::Beta::Link
67
67
  def tooltip_with_link(direction: :s, tooltip_text: "You can press a button")
68
- render(Primer::Beta::Link.new(href: "#link-with-tooltip", id: "link-with-tooltip")) do |component|
68
+ render(Primer::Beta::Link.new(href: "#link-with-tooltip", id: "link-with-tooltip", underline: true)) do |component|
69
69
  component.with_tooltip(text: tooltip_text, direction: direction)
70
70
  "Button"
71
71
  end
@@ -3646,6 +3646,12 @@
3646
3646
  "default": "`:button`",
3647
3647
  "description": "One of `:button`, `:reset`, or `:submit`."
3648
3648
  },
3649
+ {
3650
+ "name": "inactive",
3651
+ "type": "Boolean",
3652
+ "default": "N/A",
3653
+ "description": "Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button."
3654
+ },
3649
3655
  {
3650
3656
  "name": "disabled",
3651
3657
  "type": "Boolean",
@@ -12186,6 +12186,12 @@
12186
12186
  "default": "`:button`",
12187
12187
  "description": "One of `:button`, `:reset`, or `:submit`."
12188
12188
  },
12189
+ {
12190
+ "name": "inactive",
12191
+ "type": "Boolean",
12192
+ "default": "N/A",
12193
+ "description": "Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button."
12194
+ },
12189
12195
  {
12190
12196
  "name": "disabled",
12191
12197
  "type": "Boolean",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.4
4
+ version: 0.36.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview