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.

🐛 Bug - Forma 36 React - Tables that are not forma 36 components change colour on hover.

See original GitHub issue

Forma 36 bug report

Summary

Hovering over any TD element in tables that are not forma 36 components changes their background color to white. This is particularly frustrating as I am attempting to build a contentful UI extension making use of the fullcalendar npm module.

Due to the rules:

tr:hover td:not(.TableCell__TableCell--head___3AHws){background-color:#f7f9fa}.

and

tr:hover td:not(.TableSortingLabel__TableCell--head___yxhXj){background-color:#f7f9fa}

Hovering over any TD element, even those that are not related to forma 36, will change their background color to #f7f9fa.

https://codesandbox.io/s/epic-mccarthy-yoezd?file=/src/App.js

Environment

"@contentful/forma-36-react-components": "^3.98.4",
"@contentful/forma-36-tokens": "^0.9.4",

Chrome Version 94.0.4606.81 (Official Build) (x86_64)

Steps to reproduce

See code sandbox https://codesandbox.io/s/epic-mccarthy-yoezd?file=/src/App.js

Expected results

I expect only forma 36 components to adhere to this css rule.

Actual results

I expected background colour of TDs not to change

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
denkristoffercommented, Jul 5, 2022

@nawed2611 Absolutely, that would be lovely 🙂

0reactions
denkristoffercommented, Aug 26, 2022

Although this bug is still valid I’ll go ahead and close this issue as the v3 package is not maintained by Contentful anymore. We’re still happy to accept external contributions for this issue though!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Table - Forma 36
Forma 36 is an open-source design system by Contentful created with the intent to reduce the overhead of creating UI by providing tools...
Read more >
How to change the hover color of Material-UI table?
I've got this solution so far. Maybe there are other approaches to override css of tableRow but this one works like a charm:...
Read more >
contentful/forma-36: A design system by Contentful - GitHub
Storybook for f36-components. Commits & releases; Testing with your own project locally; Get involved; Reach out to us. You found a bug or...
Read more >
Using material-table in React to build feature-rich data tables
Let's review how to create tables in React using one of the best and most feature-rich libraries available: material-table.
Read more >
Create a Hover Button in a React App | Pluralsight
We will see two methods of creating a hover button: using pure CSS and using ... of a hover button such as grow,...
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