Skip to content

Commit

Permalink
display feedback buttons on mobile by default (#82)
Browse files Browse the repository at this point in the history
J=CLIP-1309
TEST=manual

verified on test-site that buttons are only displayed on hover for desktop mode and always displayed for mobile mode
  • Loading branch information
anguyen-yext2 authored Jul 10, 2024
1 parent 7178d48 commit 1e4b116
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FeedbackButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface FeedbackButtonsCssClasses {
const builtInCssClasses: FeedbackButtonsCssClasses =
withStylelessCssClasses<FeedbackButtonsCssClasses>("FeedbackButtons", {
container:
"flex gap-x-1 absolute -right-1 -top-3 opacity-0 group-hover:opacity-100 duration-200",
"flex gap-x-1 absolute -right-1 -top-3 [@media(hover:hover)]:opacity-0 group-hover:opacity-100 duration-200",
thumbsUpButton:
"w-6 h-6 bg-gray-700 rounded-md flex justify-center items-center",
thumbsUpIcon: "text-white w-[22px] h-[22px] stroke-[0.2]",
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ module.exports = {
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
],
future: {
hoverOnlyWhenSupported: true,
},
};

0 comments on commit 1e4b116

Please sign in to comment.