Skip to content

Issue with output and link_color #3105

@listedegarde

Description

@listedegarde

I have declared by link_color as following:

$typography_fields[] = array(
  'id'       => 'scss-button-text-colour',
  'type'     => 'link_color',
  'title'    => __('Primary button text colour', 'my-framework'),
  'visited'  => false,
  'output'   => array(
    'color' => '.btn.btn-primary',
  ),
  'default'  => array(
  'regular'  => '#1e73be', // blue
  'hover'    => '#dd3333', // red
  'active'   => '#8224e3',  // purple
  )
);

The output only functions on the main color, not the :hover or :active. Example:

.btn.btn-primary{color:#1e73be;}:hover{color:#ba2dc4;}:active{color:#8224e3;}

Which means that my whole body has a :hover colour of #ba2dc4. I have also tried with 'output' => array('.btn.btn-primary');

Have I missed something, or is this a bug?

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