Skip to content

Commit

Permalink
fix dark and light mode bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1tch committed Dec 11, 2023
1 parent abf79f4 commit 6c0d546
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Vue-components/example-vue-2/src/components/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ export default {
description: "Stand for humanity! Palestine has a right to defend itself. Together, we can put an end to the Gaza genocide. Let's unite to #SAVEGAZA and ensure that every life in this region has access to the most basic necessities.",
linkTo: "https://twitter.com/search?q=%23PalestineLivesMatter&src=typeahead_click"
}
}, computed: {
},
computed: {
darkModeClasses() {
return this.isDarkMode === "dark" ? {background: "bg-gray-600/70", text: "text-gray-300"} : {background: "bg-gray-50/70", text: "text-gray-900"}
return this.isDarkMode === true ? {background: "bg-gray-600/70", text: "text-gray-300"} : {background: "bg-gray-50/70", text: "text-gray-900"}
}
}
}
Expand Down

0 comments on commit 6c0d546

Please sign in to comment.