Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(c-button): fp-1791 auto width by default #49

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Oct 28, 2022

Overview

Buttons should be automatic width by default.

Related

Changes

  • Do not default width to short.
  • Do not set font size (let client do so, or not).

Testing

Pages:

Steps:

  1. Submit buttons are as wide as their text content (plus padding).
  2. Submit buttons width is not fixed by a snippet.

UI

Tested via consumer app; see TACC/Core-CMS#560.

wesleyboar and others added 2 commits October 28, 2022 21:44
- Do NOT set font-size of buttons in core styles.
- Let font size:
    - either be inherited (Bootstrap _reboot.css)
    - or be set by client (portal, cms, tup)
@wesleyboar wesleyboar merged commit 2b44038 into main Oct 31, 2022
@wesleyboar wesleyboar deleted the fix/fp-1791-automatic-button-width branch October 31, 2022 20:52
@wesleyboar wesleyboar restored the fix/fp-1791-automatic-button-width branch October 31, 2022 20:52
@wesleyboar
Copy link
Member Author

⚠️ Branch restored (temporarily) so if TACC/Core-CMS#560 merge pushes a new CMS image to https://hub.docker.com/r/taccwma/core-cms/tags, then npm ci will locate this branch from which it is told to install core styles.

@wesleyboar wesleyboar deleted the fix/fp-1791-automatic-button-width branch November 8, 2022 04:14
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.

1 participant