Releases: primer/view_components
v0.12.0
Minor Changes
-
#2283
da3bdb26
Thanks @mperrotti! - Adds an 'inactive' state to buttons. An inactive button looks disabled and has aria-disabled, but it can still be clicked and focused. This was added to support buttons that are broken due to availability issues, but can't be removed from the page. -
#2278
83b70dd7
Thanks @gwwar! - Add optional with_trailing_visual_label slot to Primer::Alpha::SegmentedControl::Item. Filling the slot will add a Primer::Beta::Label to the right of the item.
Patch Changes
- #2281
46d5d9cb
Thanks @keithamus! - Fix tooltips opening when focus is removed while displaying
v0.11.0
Minor Changes
-
#2276
7184d76e
Thanks @jonrohan! - Adding option item_arguments hash argument to ActionBar::Item that will control the item system arguments -
#2259
a2fe6134
Thanks @TylerJDev! - * Includes ActionMenu in ActionBar focus trap when present.- Adjusts
focus_group.ts
to settabindex="0"
back to invoker if it is non-focusable. - Prevents popover invokers from being triggered with 'left' and 'right' arrow keys.
- Adjusts
Patch Changes
-
#2260
b584a6b5
Thanks @camertron! - ActionMenu: hide the menu when focus leaves the component; focus the first list item when the menu is activated with the mouse; allow disabling list items while still permitting them to be focused with the keyboard
v0.10.0
Minor Changes
-
#2240
512fc39e
Thanks @camertron! - Allow anonymous forms, mostly useful for tests -
#2241
3f7e6198
Thanks @camertron! - Enable validation messages on radio button and check box groups -
#2247
09648632
Thanks @jonrohan! - Graduate NavList to beta status -
#2251
4a51102d
Thanks @camertron! - Add header variant to Dialog
Patch Changes
-
#2256
fd17adfd
Thanks @langermank! - Fix disabled styles for radio -
#2250
66c4dd69
Thanks @langermank! - - Improve contrast for icons ininvisible
button on hover in dark mode (within v8 colors)- Fix disabled button styles (v8 colors)
- Bump Primitives to latest
-
#2242
bc254f13
Thanks @keithamus! - Remove background from anchored-position -
#2249
1209d241
Thanks @camertron! - Fix underline behavior in Link component -
#2254
cdb9fe4d
Thanks @keithamus! - Only supply aria-label on Overlays with a role assigned -
#2245
495f911c
Thanks @TylerJDev! - Fix bug in ActionMenu keyboard navigation, where items aren't skipped when they're functionally[hidden]
. -
#2244
3c5fb3a7
Thanks @camertron! - Fix race condition causing dotcom axe check failures for icon button tooltips -
#2248
9885a5d8
Thanks @keithamus! - Update popover support in older browsers.
v0.9.0
Minor Changes
-
#2205
88ac3095
Thanks @TylerJDev! - Add rubocop linter forIconButton
component -
#2223
00b7d5d7
Thanks @jonrohan! - Moving the render for the ActionBar::Item from the slot initializer to the call method.
Patch Changes
-
#2227
bb336bb6
Thanks @jonrohan! - [Bug] Don't fill in the spinner circle svg path -
#2237
70a8336f
Thanks @jonrohan! - Fixing ActionBar more menu items including buttons with no type -
#2204
ed1644a2
Thanks @keithamus! - Fix errors in older browsers with :popover-open -
#2236
d663e450
Thanks @keithamus! - Centre anchored-position elements when their anchor is not present
v0.8.0
Minor Changes
-
#2215
827634e9
Thanks @mjimenez98! - Support SVGs as leading visuals inButton
component -
#2222
e196af7b
Thanks @jonrohan! - Replace dismiss button in Flash with IconButton
Patch Changes
-
#2213
bc4b3340
Thanks @camertron! - Support Rails edge's custom deprecators -
#2212
3d0036ae
Thanks @keithamus! - Fix dialog invocation within deferred ActionMenus
v0.7.0
Minor Changes
-
#2200
1b770f90
Thanks @TylerJDev! - Add rubocop linter forTruncate
component -
#2207
ba01f4e9
Thanks @langermank! - Bump Primitives v7.12.0 -
#2210
aded2aa4
Thanks @khiga8! - Fix accessibility bug of missing accessible name onPrimer::Alpha::Dialog
Patch Changes
-
#2203
3f504021
Thanks @orhantoy! - Fix guide URLs (in lib/primer/deprecations.yml) -
#2192
73fc40bb
Thanks @camertron! - ActionMenu: Don't allow items to be unchecked in single-select mode -
#2211
9623ab63
Thanks @jonrohan! - Updating tooltip migration linter link to correct url -
#2202
d7da4012
Thanks @camertron! - Label BorderBox lists with their header -
#2190
0a9bcda2
Thanks @radglob! - Updates Primer::Beta::Button.with_tooltip to not accept:label
type. -
#2201
ba90a43d
Thanks @kintner! - add aria-invalid when fields are invalid
v0.6.0
Minor Changes
-
#2187
ce2011e6
Thanks @camertron! - Expose ActionList's #build_item and #build_avatar_item externally to facilitate parent-less item construction -
#2188
5950afea
Thanks @camertron! - Allow disabling submit buttons -
#2165
1b8ff1b7
Thanks @camertron! - Add an accessible avatar item to ActionList, NavList, and ActionMenu -
#2186
eab82c07
Thanks @camertron! - On dismiss, allow banners to be hidden instead of removed from DOM
Patch Changes
-
#2164
93344455
Thanks @camertron! - Allow form buttons to be disabled on click with data-disable-with -
#2158
0afaecc6
Thanks @jonrohan! - Fix bug in ActionMenu button where return doesn't trigger menu -
#2168
45822328
Thanks @keithamus! - Guard tooltip popover calls fromFailed to execute 'showPopover' on 'HTMLElement': Not supported on elements that do not have a valid value for the 'popover' attribute.
-
#2160
8464823b
Thanks @langermank! - Fix Dialog backdrop color fallback -
#2163
e3aeda1f
Thanks @langermank! - Add fallbacks for primary Button -
#2170
4391873d
Thanks @Tonkpils! - Add support for capitalize to text-transform -
#2169
4f11f5e3
Thanks @camertron! - Fix color contrast issues for action list hover state (danger style)
v0.5.1
Patch Changes
-
#2156
5f809724
Thanks @langermank! - Add correct fallbacks toState
label -
#2151
78e0d175
Thanks @jdrush89! - Checking document scrollbar width before making dialog backdrop visible to fix issue with document padding on mobile screens. -
#2154
9005b5cd
Thanks @langermank! - Add color declaration for Dialogtitle
v0.5.0
Minor Changes
-
#2148
cbd5c84d
Thanks @keithamus! - Add a linter discouraging use of in favor of Primer::Alpha::ActionMenu -
#2123
f9119d95
Thanks @langermank! - - Use Primitive v8 color tokens- Add tests for compiled CSS to ensure CSS color variables have a fallback
Patch Changes
- #2153
b9871598
Thanks @langermank! - Update color fallback forUnderlineNav
counter
v0.4.0
Minor Changes
-
#2111
6ee6d774
Thanks @keithamus! - refactor Primer::Alpha::Tooltip to use popoverChanged components: Primer::Alpha::Tooltip
-
#2034
707a1fa3
Thanks @radglob! - Partially address a11y issues in Link component.Links can no longer be rendered as
<span>
s. -
#1941
a8cc5ba2
Thanks @jonrohan! - 🆕 New component!The
Primer::Alpha::ActionBar
component is used to create a toolbar of buttons that will fold into an ActionMenu when the space is smaller. Design details