Sitelet https://github.com/framework7io/framework7/issues/4373
Skip to content

iOS: dialog button color is ignored #4373

Description

@femto-code
  • Framework7 version: 9.0.3
  • Platform and Target: Chrome Browser, PWA/WebApp in iOS style mode

Describe the bug

A button color specified for a dialog is applied in MD/Android theme but not for iOS theme.

To Reproduce

Steps to reproduce the behavior:

  1. Create a dialog with custom buttons (see sample code and screenshots below)
  2. Set a button color
  3. See result in iOS theme

Expected behavior

The buttons of the dialog actually show up with the color as defined. It would be nice to have that across themes, including the iOS theme.

Actual Behavior

The buttons of the dialog use the default app theme color shading for all buttons, regardless of button color defined.

Screenshots

Image Image

Additional context

$f7.dialog.create({
    text: 'This is a test',
    buttons: [
    {
    text: 'Button 1',
    color: 'red',
    },
    {
    text: 'Button 2',
    color: 'blue'
    },
    ],
    verticalButtons: true,
}).open();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions