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

Как стилизировать календарь? #5

Open
hellpirat opened this issue Nov 13, 2018 · 3 comments
Open

Как стилизировать календарь? #5

hellpirat opened this issue Nov 13, 2018 · 3 comments

Comments

@hellpirat
Copy link

Другие стилизировать календарь? Другое по примеру стилизируется, календарь нет.
Пробую делать так:

const customTheme = createTheme({
  i18n,
  colors: merge(baseColors, customColors),
  tabs: {
    colors: {
      hover: {
        text: '#ff0044',
      },
      active: {
        text: '#ff0044',
      },
      selected: {
        text: '#ff0044',
        border: 'currentColor'
      },
    },
  },
  calendar: {
    root: {
      width: 500,
      height: 500,
      padding: 50,
      color: 'red',
    },
    item: {
      width: 500,
      height: 500,
      padding: 50,
      color: 'red',
    }
  },
})
@andrepolischuk
Copy link
Member

в примере указана корректная тема для табов, но не корректная для календаря, нужно соблюдать такую структуру: https://github.com/rambler-digital-solutions/rambler-ui/blob/master/src/theme/base/index.js#L1089

@hellpirat
Copy link
Author

Хм, понял, эти получилось переопределить, но есть же еще стили которые задаются прям в компоненте https://github.com/rambler-digital-solutions/rambler-ui/blob/master/src/Calendar/Calendar.js#L23 можно ли как-то их переопределить?

@andrepolischuk
Copy link
Member

то что в .root можно переопределить через props.className

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants