Skip to content

Commit

Permalink
CareUI: bg-white for secondary variant ButtonV2 (ohcnetwork#4626)
Browse files Browse the repository at this point in the history
* Secondary button to have `bg-white`

* consultation form, justify end cancel submit buttons
  • Loading branch information
rithviknishad authored Jan 24, 2023
1 parent e93d8eb commit a5ea73e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Components/Common/components/ButtonV2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export const Submit = ({ label = "Submit", ...props }: CommonButtonProps) => {
id="submit"
type="submit"
className="w-full md:w-auto"
// Voluntarily setting children this way, so that it's overridable when using.
children={
<>
<CareIcon className="care-l-check-circle text-lg" />
Expand All @@ -170,8 +169,8 @@ export const Cancel = ({ label = "Cancel", ...props }: CommonButtonProps) => {
id="cancel"
type="button"
variant="secondary"
border
className="w-full md:w-auto"
// Voluntarily setting children this way, so that it's overridable when using.
children={
<>
<CareIcon className="care-l-times-circle text-lg" />
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ export const ConsultationForm = (props: any) => {
</div>
{/* End of Telemedicine fields */}

<div className="mt-6 flex flex-col sm:flex-row gap-3 justify-between">
<div className="mt-6 flex flex-col sm:flex-row gap-3 justify-end">
<Cancel
onClick={() =>
navigate(`/facility/${facilityId}/patient/${patientId}`)
Expand Down
2 changes: 1 addition & 1 deletion src/style/CAREUI.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
.button-primary-ghost { @apply accent-primary-500 hover:bg-primary-100 text-primary-500 !important }
.button-primary-border { @apply border border-primary-500 }

.button-secondary-default { @apply accent-secondary-200 bg-secondary-300 hover:bg-secondary-200 text-secondary-800 !important }
.button-secondary-default { @apply accent-secondary-200 bg-white hover:bg-secondary-200 text-secondary-800 !important }
.button-secondary-ghost { @apply accent-secondary-200 hover:bg-secondary-100 text-secondary-700 !important }
.button-secondary-border { @apply border border-secondary-300 }

Expand Down

0 comments on commit a5ea73e

Please sign in to comment.