• Priority: 0
  • Status: Closed
  • Theme: Venedor
  • Assigned To: Fred
  • Private: No
  • Open Date: 28.04.20, 12:04
  • Opened by: Lite Solutions
  • Closed by: Fred
  • Closed on: 24.06.20, 22:40
  • Reason: Closed
  • Comment: Glad to help!

Ticket #17571 - Button colors

When button colors are generated, the :focus and :active styles are not generated, so default “#2592a9” is used.

I think :focus and :active should be generated with “on hover” settings.

Comments

Fred 28 Apr 2020, 12:13

We are going to release completely new Theme Settings module, and I’ll add this suggestion there

Lite Solutions 28 Apr 2020, 12:25

For now, I have solved adding styles to theme settings generator like this:

					array(
						'name' => 'gs_button_text_color_hover',
						'type' => 'color',
						'input_type' => 'color',
						'output' => 'body .btn:hover, .bt_compare:hover, .btn-primary.active, .btn-primary:active, .open>.btn-primary.dropdown-toggle, .btn-primary.focus, .btn-primary:focus, .btn-primary:hover',
						'css_rule' => 'color',
						'label' => $this->trans('Button Text Color on Hover', array(), 'Modules.ThemeSettings.Admin'),
						'default' => '#666666',
					),
					array(
						'name' => 'gs_button_color_hover',
						'type' => 'color',
						'input_type' => 'color',
						'output' => 'body .btn:hover, .bt_compare:hover, .btn-primary.active, .btn-primary:active, .open>.btn-primary.dropdown-toggle, .btn-primary.focus, .btn-primary:focus, .btn-primary:hover',
						'css_rule' => 'background-color',
						'label' => $this->trans('Button Color on Hover', array(), 'Modules.ThemeSettings.Admin'),
						'default' => '#666666',
					),
					array(
						'name' => 'gs_button_border_color_hover',
						'type' => 'color',
						'input_type' => 'color',
						'output' => 'body .btn:hover, .bt_compare:hover, .btn-primary.active, .btn-primary:active, .open>.btn-primary.dropdown-toggle, .btn-primary.focus, .btn-primary:focus, .btn-primary:hover',
						'css_rule' => 'border-color',
						'label' => $this->trans('Button Border Color on Hover', array(), 'Modules.ThemeSettings.Admin'),
						'default' => '#666666',
					),
Fred 28 Apr 2020, 12:35

ok