Giter Club home page Giter Club logo

material-ui-banner's People

Contributors

alexplumb avatar cmeinsch avatar mattcasey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

material-ui-banner's Issues

TypeError: Cannot read property 'up' of undefined

I'm getting the following exception with a plain install:

(anonymous function)
node_modules/material-ui-banner/dist/index.js:192
  189 |   marginLeft: "auto",
  190 |   marginRight: "auto"
  191 | },
> 192 | appBar: O({}, e.breakpoints.up("md"), {
      | ^  193 |   width: 1100,
  194 |   marginLeft: "auto",
  195 |   marginRight: "auto",
View compiled
create
node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js:20
  17 | var styles;
  18 | 
  19 | try {
> 20 |   styles = themingEnabled ? stylesOrCreator(theme) : stylesOrCreator;

Looks like it's not finding the theme? I'll continue to investigate.

CardActions component is rendered when banner has no buttons

Extra space is taken up by the banner when no buttons are available inside the banner.
Please consider making the render of the CardActions within the banner conditional for instances where no buttons are displayed, even if it is against the Material Design standards.

Provide @types/material-ui-banner

Using this in a React+TypeScript project, I get

error TS7016: Could not find a declaration file for module 'material-ui-banner'. 'node_modules/material-ui-banner/dist/index.js' implicitly has an 'any' type.
  Try `npm install @types/material-ui-banner` if it exists or add a new declaration (.d.ts) file containing `declare module 'material-ui-banner';`

AppBar button displays off edge of page between 960px and 1100px wide

Buttons within the banner flow off the edge of the page when the screen size ie between 960px and 1100px wide as the width of the banner is set to 1100px.

Adding a maximum width of 100% to the container should resolve the issue.

appBar: {
[theme.breakpoints.up('md')]: {
width: 1100,
marginLeft: 'auto',
marginRight: 'auto',
maxWidth: '100%',
},
},

screen shot 2019-02-21 at 3 49 53 pm

Documentation is missing 'classes' prop

An object containing additional classNames to be applied to the various components of the panel can be passed through to the banner component to enable additional styling. Adding this to the docs would be helpful for people looking to implement this component.

Cannot use with NextJS: 'window' is not defined

This component cannot be used with NextJS.

Expected Behavior: A simple page should build and render.

Actual Behavior: A ReferenceError: window is not defined is thrown.

CodeSandbox for Minimal Example: https://codesandbox.io/s/nextjs-banner-test-vr6pt?file=/pages/index.js

Notes: I could not locate any code in the repository which uses window directly. It may be used by some module that this component calls.

Version Info:

React v16.13.0
NextJS v9.3.0
material-ui-banner v1.4.3

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.