Skip to content

Conversation

@BendaCoding
Copy link

  • add ts types
  • add rollup ts plugin to build with types

/**
* Whether it is sticky, or not.
*/
sticky?: string;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to be careful this thing isn't a boolean. Look at the source code and the way it's actually used. The fact that it's a string is crazy.

Sticky's only possible value is null/undefined or https://getbootstrap.com/docs/4.0/utilities/position/ the string 'top' because of how it gets used here. https://github.com/DesignRevision/shards-react/blob/master/components/navbar/Navbar.js#L38

JeanOUINA added a commit to JeanOUINA/shards-react that referenced this pull request May 1, 2021
@jakeisnt
Copy link

jakeisnt commented Feb 2, 2022

Hey! Would love to see this merged if possible to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants