-
Notifications
You must be signed in to change notification settings - Fork 20
Vuetify: hg‐button (HgButtonComponent)
Mike Lyttle edited this page Jun 23, 2023
·
3 revisions
- primary, secondary, danger, success, and link variants:
- Swap
<hg-button>
for<HgButtonComponent>
. - Using full names makes it easier to track down references.
- Because it's easier to use imported components in Vue 3 with Composition API single-file components, instead of registering the component globally, import it in each file it is used.
- Swap
- icon variants:
- Swap
<hg-button>
for<HgIconButtonComponent>
.
- Swap
- icon-input variant:
- Swap
<hg-button>
for<HgIconButtonComponent>
inside an icon slot on<v-text-field>
.
- Swap
- carousel and nav variants:
- Stop using
<hg-button>
. Replace with appropriate built-in functionality of<v-carousel>
or<v-nav-drawer>
.
- Stop using
<HgButtonComponent>
<HgButtonComponent variant="secondary">
<HgButtonComponent color="error">
<HgButtonComponent color="success">
<HgButtonComponent variant="link">
<HgButtonComponent variant="link" color="error">
<HgButtonComponent size="small">
<HgIconButtonComponent icon="fa-bars" />
<HgIconButtonComponent icon="fa-bars" />
- Using the
inverse
prop on<HgButtonComponent>
, you can swap to an appearance that is suited for use on dark backgrounds. -
<HgIconButtonComponent>
icons are white on dark backgrounds and black on light backgrounds by default. - Consider simplifying
<HgButtonComponent>
declarations where appropriate:- Icons placed inside an
<HgButtonComponent>
can often be replaced with aprepend-icon
orappend-icon
prop on<HgButtonComponent>
. - Buttons that contain only text content can move that content into the
text
prop to turn the declaration into a self-closing tag (<HgButtonComponent text="X" />
).
- Icons placed inside an
-
Developer Standard and Processes
-
Workstation Setup
-
IDE Configuration
-
Application Config
-
RedHat SSO Authorization Server
-
Known Issues