Skip to content

Button inside list item slot icon is black but should be white #559

@jtuchel

Description

@jtuchel

Bug Report

Package versions:

devexteme version: 21.2.5
devextreme-vue version: 21.2.5

Steps to reproduce:

Based on https://js.devexpress.com/Documentation/Guide/Vue_Components/Add_DevExtreme_to_a_Vue_Application/#Install_DevExtreme

  • Create a new app

image

  • Install the dependencies npm install devextreme devextreme-vue
  • Inside main.ts add the line import 'devextreme/dist/css/dx.light.css';
  • Inside index.html replace the whole body tag with
  <body class="dx-viewport">
    <div id="app"></div>
  </body>
  • Inside App.vue replace the code with
<template>
  <DxList :data-source="items">
    <template #item>
      <DxButton icon="trash" type="danger" />
    </template>
  </DxList>
</template>

<script lang="ts">
import DxButton from "devextreme-vue/button";
import DxList from "devextreme-vue/list";
import { defineComponent, ref } from "vue";

export default defineComponent({
  components: {
    DxButton,
    DxList,
  },
  setup() {
    const items = ref(["foo", "bar"]);

    return { items };
  },
});
</script>
  • Running the app should render the following

image

Current behavior:

Using

<DxButton icon="trash" type="danger" />

inside the list item slot renders a red button with a black trash icon.

Expected behavior:
As described in the docs

https://js.devexpress.com/Demos/WidgetsGallery/Demo/Button/Icons/Vue/Light/

I can use

<DxButton icon="trash" type="danger" />

to render a red button with a white trash icon.

I would expect the icon to be white inside the list slot too.

Screenshots:
Current

image

Expected

image

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