This is a migrated thread and some comments may be shown as answers.

Image only toolbar button not grayed out when disabled

7 Answers 181 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 10 Apr 2018, 04:07 PM

Hi 

In the latest release 2018.1.221 the behaviour  of disabled image only toolbar buttons seems to have changed? Previously they were grayed out and now they are not...

If I add text to the button this does get grayed out but not the image.

I have attached two .png files toolbar1.png showing previous behaviour and toolbar2.png showing current behaviour .....

Any suggestions on how to get the images to show as disabled?

Thanks

James

7 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 12 Apr 2018, 07:44 AM
Hello James,

At my end the image in a disabled ToolBar button with no text is grayed out (screenshot). See this dojo example. The first button is enabled and has image and text, the second has image and text and is disabled, the third is enabled and has only image, the fourth is disabled and has only image. 
Could you modify the linked example and demonstrate the issue?

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
James
Top achievements
Rank 1
answered on 12 Apr 2018, 08:59 AM

Hi Ivan

Thanks for the quick response. I think you may well be right - after posting yesterday I made an example similar to yours and it did indeed look disabled - I used the same images. I think the issue was maybe a change to the opacity with colour images .... are there any colour images in 'demos.telerik.com/kendo-ui/content/shared/icons' that I could access touse in a test?

Disabled buttons in our toolbar are disabled, it was only the appearance that seemed to have changed.

 

Thanks again

James

 

0
Ivan Danchev
Telerik team
answered on 16 Apr 2018, 08:53 AM
Hi James,

Here's the dojo example updated with a colored image set to the ToolBar buttons. There is no change in behavior.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
James
Top achievements
Rank 1
answered on 16 Apr 2018, 09:25 AM

Hi Ivan Thanks for that - however if you run your example against  version 2016.3.1028 -  dojo example you will see that the images are 'grayed' out a bit more.

While what we have now in 2018.1.221 are ok is there any change we can make to get the toolbar to look a bit more like the pre 2017 R3 versions?

Kind regards
Jim

0
Ivan Danchev
Telerik team
answered on 18 Apr 2018, 06:37 AM
Hi James,

Indeed the disabled buttons in the older version were more grayed out and this was due to the opacity value applied to the k-state-disabled class:
.k-button-group .k-state-disabled {
  opacity: .3;
}

Here's the modified example with the CSS rule above added and the latest official Kendo UI version loaded.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
James
Top achievements
Rank 1
answered on 18 Apr 2018, 07:00 AM

Hi Ivan

That is exactly what we needed.

Many thanks 

Kind regards

James

0
Ivan Danchev
Telerik team
answered on 19 Apr 2018, 12:56 PM
Hi James,

Thank you for writing back. I am glad the suggested styles helped you in achieving the desired button appearance.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Toolbar
Asked by
James
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
James
Top achievements
Rank 1
Share this question
or