Skip to content

Releases: primer/view_components

v0.0.58

21 Sep 15:42
57388b0
Compare
Choose a tag to compare

Updates

  • Add accessibility section to Breadcrumbs page.

    Kate Higa

  • Improve performance of the Classify module, i.e. Classify.call.

    Cameron Dutro

  • Background arguments are now pulled in through the utilities class.

    Jon Rohan

  • Border arguments are now pulled in through the utilities class.

    Jon Rohan

Breaking changes

  • bg: system argument will no longer accept hex color strings, and deprecated color scale.

    Jon Rohan

Bug fixes

  • Fix ClipboardCopy octicons not toggling correctly after first click.

    Manuel Puyol, Kristján Oddsson

v0.0.57

13 Sep 17:13
a0cbe43
Compare
Choose a tag to compare

Bug fixes

  • Don't suggest empty colors for Octicons when autocorrecting.

    Manuel Puyol

v0.0.55

10 Sep 14:45
18f30a1
Compare
Choose a tag to compare

Breaking changes

  • Primer::Breadcrumbs requires hrefs for all items and no longer accepts the selected argument.

    Joel Hawksley

  • Split TabNav into TabNav and TabPanels.

    Kate Higa

New

  • Use the allocation_stats gem to count object allocations in our benchmarks.

  • Improve performance of Octicon cache key construction.

    Cameron Dutro

  • Update @primer/css to 17.7.0 which includes a new argument for word_break

    Jon Rohan

Misc

  • Clean up extra constants in UnderlineNav.

    Kate Higa

v0.0.54

31 Aug 19:22
70ac560
Compare
Choose a tag to compare

Breaking changes

  • Rename BreadcrumbComponent to Beta::Breadcrumbs.

    Joel Hawksley

  • Split UnderlineNavComponent into Alpha::UnderlineNav and Alpha::UnderlinePanels.

    Kate Higa

v0.0.53

26 Aug 15:44
a86895b
Compare
Choose a tag to compare

New

  • Add autocorrection to FlashComponent linter when the context is basic text.

    Manuel Puyol

Updates

  • Linters won't mark offenses when the ignore count is correct unless explicitly configured to do so.

    Manuel Puyol

  • Map the for argument when autofixing ClipboardCopy migrations.

    Kristján Oddsson

  • Add autocorrection for CloseButton linter.

    Manuel Puyol

Bug fixes

  • Linters won't convert HTML special elements.

    Manuel Puyol

Misc

  • Only run CHANGELOG CI on pull requests.

    Manuel Puyol

  • Run CI actions on pushes to main.

    Cameron Dutro

  • Get to 100% code coverage.

    Cameron Dutro

v0.0.52

18 Aug 15:45
a0079ec
Compare
Choose a tag to compare

New

  • Adding Primer::Beta::Truncate component to reflect changes in primer/css component Truncate.

    Jon Rohan

  • Add cop to look for deprecated system arguments and suggest replacements.

    Jon Rohan

  • Add cop to use primer_octicon in favor of octicon.

    Manuel Puyol

  • Fix release script so it doesn't loop continuously.

    Cameron Dutro

Updates

  • Promote ClipboardCopy to beta.

    Manuel Puyol

  • PrimerOcticon linter supports aria- and data- attributes.

    Manuel Puyol

  • Linters can:

    • convert values with ERB interpolations.

    • autocorrect cases with custom classes.

      Manuel Puyol

  • Add a scheme option to BorderBoxComponent rows.

    Cameron Dutro

  • Upgrade rubocop and support Ruby 3.0.

    Cameron Dutro

  • Linters will not autocorrect cases where a required argument is missing.

    Manuel Puyol

Misc

  • Update benchmarks to run in every supported Ruby version.

    Manuel Puyol

v0.0.51

05 Aug 20:40
d4410b6
Compare
Choose a tag to compare

Breaking changes

  • Rename width and height System Arguments to w and h, resolving conflict with HTML attribute names.

    Manuel Puyol

Updates

  • SystemArgumentInsteadOfClass linter will check for arguments in ViewHelpers.

    Manuel Puyol

v0.0.50

03 Aug 18:52
a6fb47a
Compare
Choose a tag to compare

New

  • Add linter suggestions for CloseButton component.

    Manuel Puyol

Breaking changes

  • Update to octicons v15, removing open-ended dependency. See [https://github.com/primer/octicons/releases/tag/v15.0.0] for icon name changes in release.

    Joel Hawksley

Updates

  • Don't require title for Label.

    Manuel Puyol

  • Improve autocorrectable linters to convert known SystemArgument classes.

    Manuel Puyol

  • Add support for width: :full and height: :full to System Arguments.

    Joel Hawksley

Bug fixes

  • Update linters to not autocorrect attributes with ERB blocks.

    Manuel Puyol

  • Fix :height and :width docs to pull from Utilities

    Jon Rohan

v0.0.49

27 Jul 20:54
8bb3257
Compare
Choose a tag to compare

New

  • Add linter suggestions for Label component.

    Manuel Puyol

  • Add linter suggestions for ClipboardCopy component.

    Manuel Puyol

Updates

  • Update the Truncate component to accept :strong as a tag.

    Amélia Chavot

  • Improve Primer::Classify::Utilities.classes_to_hash performance.

    Manuel Puyol

Breaking changes

  • Require tab with panels to have panel_id so aria-controls can be set.

    Kate Higa

  • Renames:

    • Primer::AvatarStackComponent to Primer::Beta::AvatarStack.

      Manuel Puyol

Misc

  • Extract example tag parsing into helper.

    Kate Higa

  • Generate a static constant JSON and use it when defining linters.

    Manuel Puyol

v0.0.48

21 Jul 15:44
033a5f6
Compare
Choose a tag to compare

Breaking changes

  • Ensure panels in Navigation::Tab have a label.

    Kate Higa

Misc

  • Expose custom cops and default config for erblint.

    Manuel Puyol

  • Fix double constant assign.

    Manuel Puyol