Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid Checkbox Selection - SVG icon always use fallback color #5129

Closed
pfaffmann opened this issue Jul 25, 2024 · 3 comments · Fixed by #5271
Closed

Grid Checkbox Selection - SVG icon always use fallback color #5129

pfaffmann opened this issue Jul 25, 2024 · 3 comments · Fixed by #5271
Assignees
Labels
Bug Something isn't working C: Grid FP: Unplanned

Comments

@pfaffmann
Copy link

pfaffmann commented Jul 25, 2024

Bug report

Dear Kendo Team,

Using the Grid Checkbox Selection column i found the following bug. The SVG check icon uses always the fallback color. Therfore it is not possible to set the color of this icon.

Reproduction of the problem

I created this snippet for reproduction. https://dojo.telerik.com/ufUdUnUH

  1. Run the snippet: https://dojo.telerik.com/ufUdUnUH
  2. Select a row in the grid
  3. Observe the color of the checkmark icon in the checkbox

I manually overwrite the --kendo-color-primary and --kendo-color-on-primary variables and expect, that the SVG icon uses the --kendo-color-on-primary color (green <-> #00ff00) as its stroke color, but it is white.

Current behavior

The SVG is set with the css url() function. This function sanitizes the input therfore the expression var(--kendo-color-on-primary, #ffffff) can not be evaluated. The icon uses always the fallback color as stroke color.

Expected/desired behavior

The SVG icon has the same color as set via --kendo-color-on-primary

Environment

  • Kendo UI version: 2024.2.514
  • jQuery version: 3.4.1
  • Browser: all
@iordanGrancharov iordanGrancharov transferred this issue from telerik/kendo-ui-core Aug 1, 2024
@iordanGrancharov iordanGrancharov added the Bug Something isn't working label Aug 1, 2024
@georgi-sla
Copy link

Similar behavior is also present in the Kendo UI for Angular RadioButton.

@filipKovachev
Copy link

filipKovachev commented Dec 10, 2024

Similar behavior can be observed in the Kendo UI for Vue and KendoReact RadioButton, Reported in Ticket ID: 1672640

@crobinson-expl
Copy link

Similar behavior can be observed in the KendoReact RadioButton, Reported in Ticket ID: 1672640

It may be in KendoReact as well, but the referenced ticket is for KendoVue (it's my ticket 😊).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working C: Grid FP: Unplanned
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants