close
Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Added Day Number Color prop to ranges#384

Open
DrewVartanian wants to merge 1 commit intohypeserver:masterfrom
DrewVartanian:feature/day-number-color-in-ranges
Open

Added Day Number Color prop to ranges#384
DrewVartanian wants to merge 1 commit intohypeserver:masterfrom
DrewVartanian:feature/day-number-color-in-ranges

Conversation

@DrewVartanian
Copy link
Copy Markdown

@DrewVartanian DrewVartanian commented Jun 26, 2020

Types of changes

What types of changes does your code introduce?

Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description

Currently, it seems the only way to overwrite the color of the date number text in a range is to use CSS, and any change will be applied to all ranges. This can lead to an issue if someone wants to apply different text colors to different ranges. This can come up when one range's color is very bright, necessitating a dark text color, and one range is very dark, necessitating a bright text color. In addition, it is nice to be able to set the text color with a prop, rather than having to overwrite/modify the default CSS.

This PR adds dayNumberColor as a prop on the ranges object and applies that color to the day number text of any date shown in that range.

Related Issue: #383

@kamyar
Copy link
Copy Markdown
Contributor

kamyar commented Jun 6, 2021

Hi, can you take a look at #483 and see if it would cover this usecase also?

thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants