question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

textColor is not applied to background events

See original GitHub issue

I am using v5-rc1 and background nor text changes color when

      eventSources: [
          {
            url: 'http://localhost/matpro/public/event-feed',
          },
          {
            url: 'http://localhost/matpro/public/holiday-feed',
            eventBackgroundColor: 'coral',
            eventTextColor: 'black',
            display: 'background'
          }
        ] 

Everything is working except the colors. I can change the background color with color: 'coral' but have not found a way to change the text, it just stays white, while background stays mint by default.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ZoreAnkitcommented, Mar 15, 2022

@gasparfm i tried to implement what you did but I still don’t see text color changes.

Selection_045

Hey @arshaw as you can see from picture Its difficult to read the texts. Do we have any update on this issue?

NOTE: I have used background events and made background color white. I just need to make text darker so that its more visible

1reaction
gasparfmcommented, Sep 20, 2021

I’m using a workaround for that using eventDidMount:

eventDidMount: function(info) {
	if (info.event.textColor) {
		info.el.style.color=info.event.textColor;
	}
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Full Calendar color/textColor not working - Stack Overflow
Problem. The color and textColor values are not having an effect on the calendar. I have read http://fullcalendar.io/docs/event_data/events_ ...
Read more >
Text color - WordPress.org
Hello there! Please be informed that all the colors of Timetable events may be changed on the events' pages under the Dashboard >...
Read more >
background-color - CSS: Cascading Style Sheets | MDN
The background-color CSS property sets the background color of an element. ... Inherited, no. Computed value, computed color.
Read more >
CSS Text - W3Schools
The color property is used to set the color of the text. ... the contrast between the text color and the background color...
Read more >
Text Color - Tailwind CSS
Class Properties Preview text‑inherit color: inherit Aa text‑current color: currentColor Aa text‑transparent color: transparent Aa
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found