Git Product home page Git Product logo

Comments (3)

davidroeca avatar davidroeca commented on July 29, 2024 1

I've stumbled across this issue as well, and found a workaround within my app for now -- I needed to unset some backgrounds. The paper background will take precedence here. While this is most definitely a bug in firefox, it's more than 10 years old and hasn't been fixed.

/*  styles.module.css */
.table {
  /* ... */
  /* Resolve https://github.com/KevinVandy/mantine-react-table/issues/327 */
  background-color: unset !important;
  tbody, thead {
    /* Resolve https://github.com/KevinVandy/mantine-react-table/issues/327 */
    background-color: unset !important;
  }
  tr {
    /* Resolve https://github.com/KevinVandy/mantine-react-table/issues/327 */
    background-color: unset !important;
  }
  td {
    /* Resolve https://github.com/KevinVandy/mantine-react-table/issues/327 */
    /* see https://bugzilla.mozilla.org/show_bug.cgi?id=688556#c43 */
    background-clip: padding-box;
  }
}

Then these styles get used in MRT_TableOptions:

  import styles from './styles.module.css'
  export const getMyMRTOptions = <TData extends MRT_RowData>(
    config: MRTConfig = {},
  ): Partial<MRT_TableOptions<TData>> => ({
    // ...
    mantineTableProps: {
      className: styles.table,
    },
  })

from mantine-react-table.

iscy avatar iscy commented on July 29, 2024 1

@davidroeca, thanks for bringing up a solution that can easily be implemented.

from mantine-react-table.

alessandrojcm avatar alessandrojcm commented on July 29, 2024

This looks like a bug in Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=688556, the CSS is not doing anything special here so I am inclined to believe it's a bug with the browser.

from mantine-react-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.