Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

CSS Fallback values do not work #572

@miroslavstastny

Description

@miroslavstastny

Bug Report

Steps

import React from 'react'
import { Menu, Provider } from '@stardust-ui/react'

const items = [
  { key: 'editorials', content: 'Editorials' },
  { key: 'review', content: 'Reviews' },
  { key: 'events', content: 'Upcoming Events' },
]

const MenuExamplePrimary = () => (
  <Provider theme={{
    componentStyles: {
      MenuItem: {
        root: {
          border: '2px solid gray',
          borderColor: ['red', 'blue'],
        }
      }
    }
  }}>
    <Menu defaultActiveIndex={0} items={items} primary />
  </Provider>
)

export default MenuExamplePrimary

Expected Result

MenuItem::a has following styles:

border-color: red;
border-color: blue;

Actual Result

image

Version

0.14.0

Metadata

Metadata

Labels

vstsPaired with ticket in vsts

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions