Skip to content

Commit

Permalink
Use props.href to cleanup <style> href identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed Sep 1, 2024
1 parent 929cad3 commit ccdbca3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/date-picker/src/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function DatePicker({

return (
<Fragment>
<Style>{STYLES}</Style>
<Style href="@acusti/date-picker/DatePicker">{STYLES}</Style>
<div
className={clsx(ROOT_CLASS_NAME, className, {
'two-up': isTwoUp,
Expand Down
2 changes: 1 addition & 1 deletion packages/date-picker/src/MonthCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function MonthCalendar({

return (
<Fragment>
<Style>{STYLES}</Style>
<Style href="@acusti/date-picker/MonthCalendar">{STYLES}</Style>
<div className={clsx(ROOT_CLASS_NAME, className)}>
<div className={`${ROOT_CLASS_NAME}-month-title`}>
<h3 className={`${ROOT_CLASS_NAME}-month-title-text`}>{title}</h3>
Expand Down
2 changes: 1 addition & 1 deletion packages/dropdown/src/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ export default function Dropdown({

return (
<Fragment>
<Style>{STYLES}</Style>
<Style href="@acusti/dropdown/Dropdown">{STYLES}</Style>
<div
className={clsx(ROOT_CLASS_NAME, className, {
disabled,
Expand Down

0 comments on commit ccdbca3

Please sign in to comment.