Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/demo/vite-5.4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrohan authored Jan 27, 2025
2 parents 060cd84 + aeaeb96 commit 6059abf
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 102 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-dryers-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

fix(ToggleSwitch): add X-Requested-With header
5 changes: 0 additions & 5 deletions .changeset/poor-parrots-fold.md

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## 0.36.5

### Patch Changes

- [#3270](https://github.com/primer/view_components/pull/3270) [`fa16aec`](https://github.com/primer/view_components/commit/fa16aec26afb654a627c5c7ed68812f1fa807d0a) Thanks [@khiga8](https://github.com/khiga8)! - Ensure counter content is exposed to screen reader users

## 0.36.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
primer_view_components (0.36.4)
primer_view_components (0.36.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
octicons (>= 18.0.0)
Expand Down
1 change: 1 addition & 0 deletions app/components/primer/alpha/toggle_switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ class ToggleSwitchElement extends HTMLElement {

const requestHeaders: {[key: string]: string} = {
'Requested-With': 'XMLHttpRequest',
'X-Requested-With': 'XMLHttpRequest',
}

if (this.turbo) {
Expand Down
1 change: 1 addition & 0 deletions app/components/primer/beta/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class Button < Primer::Component
# @param align_content [Symbol] <%= one_of(Primer::Beta::Button::ALIGN_CONTENT_OPTIONS) %>
# @param tag [Symbol] (Primer::Beta::BaseButton::DEFAULT_TAG) <%= one_of(Primer::Beta::BaseButton::TAG_OPTIONS) %>
# @param type [Symbol] (Primer::Beta::BaseButton::DEFAULT_TYPE) <%= one_of(Primer::Beta::BaseButton::TYPE_OPTIONS) %>
# @param inactive [Boolean] Whether the button looks visually disabled, but can still accept all the same interactions as an enabled button.
# @param disabled [Boolean] Whether or not the button is disabled. If true, this option forces `tag:` to `:button`.
# @param label_wrap [Boolean] Whether or not the button label text wraps and the button height expands.
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
Expand Down
2 changes: 1 addition & 1 deletion demo/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
primer_view_components (0.36.4)
primer_view_components (0.36.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
octicons (>= 18.0.0)
Expand Down
14 changes: 7 additions & 7 deletions demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "0.1.0",
"dependencies": {
"@primer/css": "^21.5.1",
"@primer/primitives": "^10.3.2",
"@primer/primitives": "^10.3.4",
"@rails/actioncable": "^7.2.100",
"@rails/ujs": "^7.1.501",
"turbolinks": "^5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/primer/view_components/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module ViewComponents
module VERSION
MAJOR = 0
MINOR = 36
PATCH = 4
PATCH = 5

STRING = [MAJOR, MINOR, PATCH].join(".")
end
Expand Down
Loading

0 comments on commit 6059abf

Please sign in to comment.