Skip to content

Commit

Permalink
fix(HoverBackground): removed scale animation
Browse files Browse the repository at this point in the history
fix(Button): fixed ghost hover style when disabled
  • Loading branch information
Craig Howell committed Feb 5, 2023
1 parent ec59f35 commit c6d261f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/HoverBackground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { twMerge } from 'tailwind-merge';
const defaultClass =
'absolute bg-light-icon-background-hover dark:bg-dark-icon-background-hover left-[50%] top-[50%] translate-y-[-50%] translate-x-[-50%] duration-150 transition-size h-0 w-0 group-hover:h-full group-hover:w-full';
'absolute bg-light-icon-background-hover dark:bg-dark-icon-background-hover duration-150 transition-opacity h-full w-full inset-0 group-hover:opacity-100 opacity-0';
$: finalClass = twMerge(defaultClass, $$props.class);
</script>

Expand Down
4 changes: 4 additions & 0 deletions src/lib/plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ module.exports = plugin(
'box-shadow':
'var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)',
'background-color': 'transparent',
'--tw-text-opacity': '1',
color: 'rgba(0, 0, 0, 0.65)',
opacity: '0.7'
},
'button.btn.ghost:disabled:active:hover': {
Expand Down Expand Up @@ -758,6 +760,7 @@ module.exports = plugin(
'light-icon-background-hover': 'rgba(0, 0, 0, 0.05)',
'light-border': 'rgba(25,25,25,0.05)',
'light-border-base': 'rgba(25,25,25,0.1)',
'light-hover': 'rgba(0, 0, 0, 0.05)',

'dark-surface': '#242526',
'dark-background': '#18191A',
Expand All @@ -768,6 +771,7 @@ module.exports = plugin(
'dark-icon-background-hover': 'rgba(255, 255, 255, 0.1)',
'dark-border': 'rgba(89,90,92,0.35)',
'dark-border-base': 'rgba(89,90,92,0.4)',
'dark-hover': 'rgba(255, 255, 255, 0.1)',

'info-content': '#1d4ed8',
'dark-info-content': '#eff6ff',
Expand Down

1 comment on commit c6d261f

@vercel
Copy link

@vercel vercel bot commented on c6d261f Feb 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

stwui – ./

stwui-n00nday.vercel.app
stwui.vercel.app
stwui-git-main-n00nday.vercel.app

Please sign in to comment.