Releases: primer/view_components
v0.35.1
Patch Changes
-
#3177
308a56b
Thanks @mathias! - Switch Ruby match from Regexps to String's starts_with method -
#3186
4d46a3a
Thanks @camertron! - [SelectPanel] Don't clear selection if input field doesn't exist -
#3179
93297d2
Thanks @langermank! - Update the primer/primitives dependency to be 9.x || 10.x and move it to peer
v0.35.0
Minor Changes
-
#3158
683abd2
Thanks @jonrohan! - Delete Primer::Alpha::ImageCrop -
#3074
25109d0
Thanks @owenniblock! - [SelectPanel] replace loading label using parameter loading_label
[SelectPanel] show additional loading content with loading_description -
#3072
18b2074
Thanks @camertron! - [Forms] Fix position of caption for checkbox and radio groups -
#3145
a6bacb5
Thanks @camertron! - Add option to Dialog to permit/disable page scrolling -
#3160
3cb826a
Thanks @camertron! - Bump primer/css -
#3149
b9cce66
Thanks @camertron! - Allow form groups to accept system arguments -
#3071
e043069
Thanks @camertron! - [SelectPanel] Use checkboxes for multi-select -
#3126
89052ca
Thanks @francinelucca! - Introduce the Stack and StackItem components. -
#3083
5907105
Thanks @jamieshark! - [SelectPanel] Adds banner scheme as param.
Patch Changes
-
#3103
6033c86
Thanks @owenniblock! - Moves the loading and "no results" messages on the SelectPanel to the top of the container. -
#3141
37e78c0
Thanks @camertron! - Allow setting custom values on submit buttons. -
#3153
cc1ce7a
Thanks @camertron! - Fix problem introduced by #3141 that causes template captions not to render for certain input types if the input is configured with avalue:
. -
#3076
7e7a60f
Thanks @HDinger! - Add "action" to the list of data attributes that accept multiple values in themerge_data
helper -
#3139
b650344
Thanks @jamieshark! - Adjusts config for DetailsMenuMigration linter to take in an array of strings instead of array of regexp -
#3168
82c2b0a
Thanks @camertron! - [SelectPanel] Fix issue causing no error banner to appear when there are no matches -
#3095
26f1fbc
Thanks @owenniblock! - Clear input on SelectPanel when dialog closed -
#3152
3611f9c
Thanks @joelhawksley! - Fix bug where checkboxes were broken with prefers-reduced-motion -
#3159
5bc179d
Thanks @camertron! - Increase space between form elements -
#3144
978e867
Thanks @keithamus! - Remove dialog-scrollgutter setting from hot-path, for improved performance
v0.34.0
Minor Changes
- #3062
b45ef04
Thanks @dombesz! - Trigger an input event when the primer-text-field clear button is pressed.
Patch Changes
-
#3054
4434ec0
Thanks @camertron! - [SelectPanel] Disallow passingrole:
argument -
#3077
66488a3
Thanks @camertron! - [SelectPanel] Fix tab index issue in multi-select mode -
#3044
b57b63a
Thanks @jamieshark! - SelectPanel - design bug fixes. Adds a divider below the filter, adjusts min height for loading and error states, moves banner error above input filter." -
#3053
871c818
Thanks @camertron! - [SelectPanel] Raise an error when remote fetch + hidden filter argument combo -
#3058
269b02f
Thanks @langermank! -Label
padding updates to match PRC -
#3055
ca4eae5
Thanks @camertron! - Remove OpenStruct from primer_octicon cop -
#3057
96b42db
Thanks @owenniblock! - Don't select SelectPanel::Item when item is a link
v0.33.0
Minor Changes
-
#3026
5be0a0f
Thanks @camertron! - Fire an event when banners are dismissed -
#3023
3fb46ed
Thanks @langermank! - Bumpprimer/primitives
v9 -
#3022
01cbbea
Thanks @camertron! - Add a linter for migrating from SelectMenu -> SelectPanel
Patch Changes
-
#3027
5a205cd
Thanks @camertron! - Remove SelectPanel's backdrop -
#3021
8a16336
Thanks @camertron! - When hiding aSpinner
, also hide its screen reader text -
#3040
612307d
Thanks @camertron! - Revert leading/trailing visuals for link component -
#3038
6b4983e
Thanks @jamieshark! - SelectPanel: check for filter input when loading remote items.
v0.32.0
Minor Changes
- #3009
8f06f7a
Thanks @camertron! - Include value in event metadata when SelectPanel items are activated
Patch Changes
-
#2983
5d68193
Thanks @keithamus! - Ensure ActionMenu restores focus on close of a dialog, if a menu item opened that dialog -
#3010
ebab85a
Thanks @camertron! - Fixes several SelectPanel bugs:- If multiple server-rendered items are checked, the panel will only show one item checked.
- If no
data-value
attributes are provided, panels in single-select mode will allow multiple items to be checked.
-
#3011
9507093
Thanks @JoyceZhu! - Remove "loading" screenreader-only text after Spinner load for
eventually_local
SelectPanels -
#3012
adcdddd
Thanks @orhantoy! - Fix a bug where all requests from theToggleSwitch
view component are being made with a Turbo Accept header.
This started happening after the change in #2964 becausedata-turbo=false
gets interpreted as a truthy value.
v0.31.0
Minor Changes
- #2984
c56f325
Thanks @camertron! - Add ability to attach a test selector to ActionList items
Patch Changes
-
#2995
0647fed
Thanks @camertron! - Allow ActionList item content to be supplied by positional arg -
#2979
ae6e3d7
Thanks @langermank! - Prep for high contrast theme updates -
#2986
4d8ec0c
Thanks @kendallgassner! - Fixes Alpha::SelectPanel remote loading bug where items from the server were overriding the users selections. Additionally, update the #removeSelectedItem function to grab the data-value from the correct element. -
#2987
82f0267
Thanks @kendallgassner! - Ensure focus is set on SelectPanel item when arrowing down from input -
#2997
0d0b5bc
Thanks @camertron! - Prevent an empty list of custom regexes in the DetailsMenuMigration linter from reporting false-positives -
#2978
fac1ec9
Thanks @camertron! - Ensure pressing 'Enter' in SelectPanel filter input causes navigation if first item is link. -
#2996
53abaa6
Thanks @kendallgassner! - Remove tabindex="-1" from li elements labelled as role="none" since tabindex's remove/negate role presentation -
#2989
36a044a
Thanks @JoyceZhu! - Addaria-haspopup
andaria-expanded
toSelectPanel
state -
#2994
3bf8fd4
Thanks @kendallgassner! - Add aria-labelledby on the SelectPanel dialog -
#2985
868b49e
Thanks @jamieshark! - Adds custom config for DetailsMenuMigration linter. -
#2988
a5eefd9
Thanks @gjtorikian! - Fix documentation comments in relative_time.rb
v0.30.0
Minor Changes
-
#2964
91f5a57
Thanks @klaustopher! - Addturbo: true
as an parameter for theToggleSwitch
component and treat the respoonse (when it has the correct MIME type) as a Turbo Stream. The newturbo
paramater defaults to false
and with that the HTTP response is simply ignored as is the current behavior. -
#2966
05172fa
Thanks @camertron! - Ensure Down, Home, and End behave as expected when a SelectPanel's input field has focus
Patch Changes
- #2972
9b675a7
Thanks @TylerJDev! - Replacealign-items
withalign-self
and apply it onActionList
group headings directly.
v0.29.0
v0.28.0
Minor Changes
- #2941
f3b640e
Thanks @camertron! - Upstream the SelectPanel component from dotcom
Patch Changes
-
#2954
15fb8c4
Thanks @camertron! - Small SelectPanel fixes; lots of SelectPanel tests. -
#2951
ac15e65
Thanks @HDinger! - Always align group headers of aPrimer::Alpha::ActionMenu
at the beginning of the line -
#2952
98900f3
Thanks @camertron! - Fix wrapping behavior of toggle switch label -
#2961
b662625
Thanks @camertron! - Ensure condition is checked when mutations occur in SelectPanelElement.
v0.27.0
Minor Changes
- #2922
fb5917d
Thanks @camertron! - Change ActionMenu to accept and forward overlay arguments
Patch Changes
-
#2925
6c730c4
Thanks @kendallgassner! - Update ActionList such that if role='listbox' is passed in the items render as options -
#2924
235544d
Thanks @kendallgassner! - Add a valid selector to focus-group