Skip to content

Commit

Permalink
fix!: remove ory-default-theme class
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Oct 7, 2024
1 parent f1b5f61 commit 22fa6c6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 71 deletions.
63 changes: 5 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions packages/elements-react-stories/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ const withI18next: Decorator = (Story, context) => {
const { locale } = context.globals

return (
<div className="ory-default-theme">
<IntlProvider locale={locale} defaultLocale="en">
<Story />
</IntlProvider>
</div>
<IntlProvider locale={locale} defaultLocale="en">
<Story />
</IntlProvider>
)
}

Expand Down
3 changes: 1 addition & 2 deletions packages/elements-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
"esbuild-plugin-svgr": "^2.1.0",
"eslint-plugin-react": "7.37.0",
"postcss": "8.4.47",
"postcss-prefix-selector": "1.16.1",
"tsup": "8.3.0"
"tsup": "8.2.3"
},
"keywords": [
"ory",
Expand Down
6 changes: 1 addition & 5 deletions packages/elements-react/postcss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
// SPDX-License-Identifier: Apache-2.0

module.exports = {
plugins: [
require("tailwindcss")(),
require("autoprefixer")(),
require("postcss-prefix-selector")({ prefix: ".ory-default-theme" }),
],
plugins: [require("tailwindcss")(), require("autoprefixer")()],
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { DefaultCardLogo } from "./logo"

export function DefaultCard({ children }: OryCardProps) {
return (
<div className="ory-default-theme font-sans">
<div className="font-sans">
<div className="grid grid-cols-1 max-w-sm md:max-w-[480px] md:w-[480px] gap-8 bg-dialog-bg-default px-8 md:px-12 py-12 md:py-14 relative rounded-border-radius-cards border border-dialog-border-default">
{children}
<Badge />
Expand Down

0 comments on commit 22fa6c6

Please sign in to comment.