Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • pubsweet pubsweet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pubsweet
  • pubsweetpubsweet
  • Issues
  • #476

Closed
Open
Created Mar 31, 2020 by Danjela Shehi@danjelaDeveloper

Improvement of current ui component Button

can we have some improvements on our current ui component Button like:

  • Size: to change the size of the button. You can set the value to xs, sm, md, or lg.
  • Variant: prop to change the visual style of the Button. You can set the value to solid (which is similar to primary but pubsweet ofers only blue background), ghost, outline, or link (which already is secondary )
  • Variant Color: prop to change the color of the text of the button
  • Loading state: maybe would be good to have loading state with props like isLoading and loadingText but this is very debatable || optional

Based on our requirements in NCBI project we need Variant Prop and Button size more than two other ones , but the variant color and loading state would be good to have

ps. the naming conventions I mentioned above are based on chakra-ui but we can use our own if we have other terminology for these properties

Assignee
Assign to
Time tracking