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

FullCalendar does not use option "backgroundColor" for each events #1119

Closed
zablik opened this issue Mar 25, 2021 · 3 comments
Closed

FullCalendar does not use option "backgroundColor" for each events #1119

zablik opened this issue Mar 25, 2021 · 3 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working

Comments

@zablik
Copy link

zablik commented Mar 25, 2021

vue: "3.0.7"
primevue: "3.3.5"

Hi,

I want to have different background colors for events displayed in FullCalendar.

In config I try to use all options I've found in origin FullCalendar documentation

      events: [
        {
...........
              {
                "id": 2,
                "title": "Long Event",
                "start": "2019-01-07",
                "end": "2019-01-10",
                color: 'red',
                backgroundColor: 'red',
                borderColor: 'red',
                textColor: 'red',
                eventColor: 'red',
              },
              {
                "id": 3,
                "title": "Repeating Event",
                "start": "2019-01-09T16:00:00",
                color: 'purple',
                backgroundColor: 'purple',
                borderColor: 'purple',
                textColor: 'purple',
                eventColor: 'purple',
              },
...........

... but the background color remains the same as it is defined in (my case is saga-blue/theme.css)

.fc .fc-view-harness .fc-event, .fc .fc-view-harness .fc-event-main {
  background: #0d89ec;
  border: 1px solid #0d89ec;
  color: #ffffff;
}

Screenshot 2021-03-25 at 15 12 02

What can I do to change the background color of the events?

@zablik
Copy link
Author

zablik commented Mar 30, 2021

For anyone who faces this issue, I've found a temporary workaround. Hope there is a better way, though.
You need to do like this for every color

<style>

a[style*="background-color: grey"] > * {
  background: grey !important;
}

</style>

@cagataycivici cagataycivici added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working priority - low labels May 10, 2021
@cagataycivici
Copy link
Member

Closing as full calendar is deprecated in favor of the official component.

@MikesGlitch
Copy link

MikesGlitch commented Dec 23, 2021

@cagataycivici Pretty sure this is still a problem. FullCalendar style inline like so
image

PrimeVue is styling over it further down the chain
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants