Display: Set background color for button hover to colors.secondary.hover in tailwind.config.js - refs BT#20895

pull/4976/head
Yannick Warnier 1 year ago
parent 66723bc06c
commit 323a9b79e3
  1. 4
      assets/css/scss/atoms/_buttons.scss
  2. 5
      assets/vue/layouts/MyCourses.vue
  3. 1
      tailwind.config.js

@ -295,7 +295,7 @@ $border-color_12: #9333EA;
// secondary button // secondary button
.p-button.p-button-secondary { .p-button.p-button-secondary {
@include filled-style('secondary', 'support-5'); @include filled-style('secondary', 'secondary-hover');
&.p-button-outlined { &.p-button-outlined {
@include outlined-style('secondary'); @include outlined-style('secondary');
@ -308,7 +308,7 @@ $border-color_12: #9333EA;
.p-buttonset.p-button-secondary { .p-buttonset.p-button-secondary {
> .p-button { > .p-button {
@include filled-style('secondary', 'support-5'); @include filled-style('secondary', 'secondary-hover');
&.p-button-outlined { &.p-button-outlined {
@include outlined-style('secondary'); @include outlined-style('secondary');

@ -1,11 +1,6 @@
<template> <template>
<div class="flex justify-between items-center"> <div class="flex justify-between items-center">
<h2 v-t="'My Courses'" /> <h2 v-t="'My Courses'" />
<Button
v-if="isTeacher"
class="p-button-secondary md:hidden"
icon="pi pi-plus"
/>
<Button <Button
v-if="isTeacher" v-if="isTeacher"
:label="t('Course')" :label="t('Course')"

@ -18,6 +18,7 @@ module.exports = {
secondary: { secondary: {
DEFAULT: "#f37e2f", DEFAULT: "#f37e2f",
gradient: "#e06410", gradient: "#e06410",
hover: "#d35e0f",
bgdisabled: '#e4e9ed', bgdisabled: '#e4e9ed',
}, },
gray: { gray: {

Loading…
Cancel
Save