diff --git a/.changeset/chilly-wasps-sip.md b/.changeset/chilly-wasps-sip.md new file mode 100644 index 0000000000..a313d39dd5 --- /dev/null +++ b/.changeset/chilly-wasps-sip.md @@ -0,0 +1,5 @@ +--- +"@primer/view-components": patch +--- + +Remove external classes from the the button content `` in `Primer::beta::Button` diff --git a/app/components/primer/beta/button.rb b/app/components/primer/beta/button.rb index 30e10cf74c..cb2dc13bd6 100644 --- a/app/components/primer/beta/button.rb +++ b/app/components/primer/beta/button.rb @@ -154,7 +154,6 @@ def initialize( @align_content_classes = class_names( "Button-content", - system_arguments[:classes], ALIGN_CONTENT_MAPPINGS[fetch_or_fallback(ALIGN_CONTENT_OPTIONS, align_content, DEFAULT_ALIGN_CONTENT)] )