You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/12/11 01:19:01 UTC

[GitHub] [incubator-superset] rusackas commented on pull request #11418: feat: Explore time picker enhancement

rusackas commented on pull request #11418:
URL: https://github.com/apache/incubator-superset/pull/11418#issuecomment-742902548


   For the buttons, you'll want to `import Button from 'src/components/Button';`. 
   Those buttons have a `buttonStyle` prop for those three style variants in the design, e.g. `<Button buttonStyle="link"`
   From left to right, the button styles are:
   • Validate: `tertiary`
   • Cancel: `secondary`
   • Apply: `primary` (and the `disabled` prop)
   
   For all three, you can see they have a particular min-width instead of just using the text width. For that, just add the `cta` prop, i.e. `<Button cta ...`
   
   To see (and play with) all the button variants, you can run `npm run storybook` from the `superset-frontend` directory:
   ![image](https://user-images.githubusercontent.com/812905/101849005-a68efd80-3b0b-11eb-9bcf-6e568bb3286f.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org