Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The "Add language" button from this page "admin/config/regional/language/add" is missing it's '#button_type' property as "primary" making it with gray background instead of blue.
Comment | File | Size | Author |
---|---|---|---|
#6 | Add language - drupal8site.dd 2015-04-01 20-53-32.png | 30.35 KB | nuwe |
#6 | button should be blue.png | 28.76 KB | nuwe |
#4 | 2452691-4-combined.patch | 1.77 KB | valthebald |
#4 | 2452691-4-testonly.patch | 1.23 KB | valthebald |
#2 | add_language_button_property_2452691-2.patch | 558 bytes | rosinegrean |
Comments
Comment #1
rosinegrean CreditAttribution: rosinegrean commentedAdded the fix for this.
Comment #2
rosinegrean CreditAttribution: rosinegrean commentedComment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedThe patch looks good, but we'll need test coverage I think. LanguageConfigurationTest seems to be a good place to add it.
Comment #4
valthebaldAttached are 2 patches - one just adds a test if 'Add language' is a primary button (this one will fail), second one is a combination of test + patch
Comment #6
nuwe CreditAttribution: nuwe commentedThanks @valthebald for that patch I was actually confused with that part of how to assert the button belongs to that primary section but the patch you have looks good. the patch fixes the issue.I have uploaded both screen shots of the issue with and without the patch being applied.
Comment #7
nuwe CreditAttribution: nuwe commentedI think the patch looks good and as you can see in the screenshots it resolves the issue
Comment #8
alexpottThis issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 7cac6fa and pushed to 8.0.x. Thanks!