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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rosinegrean’s picture

Status: Active » Needs review
FileSize
560 bytes

Added the fix for this.

rosinegrean’s picture

FileSize
558 bytes
Anonymous’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

The patch looks good, but we'll need test coverage I think. LanguageConfigurationTest seems to be a good place to add it.

valthebald’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests
FileSize
1.23 KB
1.77 KB

Attached 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

The last submitted patch, 4: 2452691-4-testonly.patch, failed testing.

nuwe’s picture

Thanks @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.

nuwe’s picture

Status: Needs review » Reviewed & tested by the community

I think the patch looks good and as you can see in the screenshots it resolves the issue

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This 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!

  • alexpott committed 7cac6fa on 8.0.x
    Issue #2452691 by prics, valthebald: Missing button type property on "...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.