Skip to content

iOS: dialog button color is ignored #4373

@femto-code

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();

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