Skip to content

Commit

Permalink
Fix placeholder condition in preset-base (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 authored Jan 10, 2024
1 parent 81fd287 commit f823a8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-deers-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pandacss/preset-base': patch
---

Fix `placeholder` condition in `preset-base`
2 changes: 1 addition & 1 deletion packages/preset-base/src/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const conditions = {
autofill: '&:autofill',
inRange: '&:in-range',
outOfRange: '&:out-of-range',
placeholder: '&:is(:placeholder, [data-placeholder])',
placeholder: '&::placeholder, &[data-placeholder]',
placeholderShown: '&:is(:placeholder-shown, [data-placeholder-shown])',
pressed: '&:is([aria-pressed=true], [data-pressed])',
selected: '&:is([aria-selected=true], [data-selected])',
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/styled-system/types/conditions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export interface Conditions {
"_inRange": string
/** `&:out-of-range` */
"_outOfRange": string
/** `&:is(:placeholder, [data-placeholder])` */
/** `&::placeholder, &[data-placeholder]` */
"_placeholder": string
/** `&:is(:placeholder-shown, [data-placeholder-shown])` */
"_placeholderShown": string
Expand Down

3 comments on commit f823a8c

@vercel
Copy link

@vercel vercel bot commented on f823a8c Jan 10, 2024

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:

panda-docs – ./website

panda-docs-git-main-chakra-ui.vercel.app
panda-docs.vercel.app
panda-docs-chakra-ui.vercel.app
panda-css.com

@vercel
Copy link

@vercel vercel bot commented on f823a8c Jan 10, 2024

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:

panda-studio – ./

panda-studio-chakra-ui.vercel.app
panda-studio-git-main-chakra-ui.vercel.app
panda-app.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f823a8c Jan 10, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.