Skip to content

Commit

Permalink
fix(xds): add 'x' prefix on all classes usages
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianArenal committed Nov 22, 2024
1 parent 7c7f7b4 commit 88ca398
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/x-tailwindcss/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type CssVariable = `--${string}`;
*
* @example
* ```typescript
* const btnClass: CssClassSelector = '.btn';
* const btnClass: CssClassSelector = '.x-btn';
* ```
*
* @internal
Expand Down Expand Up @@ -60,7 +60,7 @@ type CssPseudoSelector = `:${string}`;
* ```typescript
* const cssOptions: CssStyleOptions = {
* '--color-lead': 'blue',
* '.btn': {
* '.x-btn': {
* '&--lead': {
* color: 'var(--color-lead)',
* gap: theme('x.spacing.2')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function inputGroupDefault(helpers: TailwindHelpers) {
marginInlineEnd: theme('x.spacing.16')
},

'.input, input': {
'.x-input, input': {
flex: '1 1 auto',
minWidth: '0',
padding: '0',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function overlay(helpers: TailwindHelpers) {
'&:hover': {
mixBlendMode: 'multiply'
},
'.picture-image': {
'.x-picture-image': {
'&:hover': {
maskImage: `linear-gradient(to top, transparent, 20%, ${theme('x.colors.neutral.100')})`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function suggestionGroupDefault(helpers: TailwindHelpers) {
textDecoration: 'underline'
},

'.suggestion': {
'.x-suggestion': {
color: 'currentColor',
minHeight: 'inherit',
fontSize: 'inherit',
Expand Down
4 changes: 2 additions & 2 deletions packages/x-tailwindcss/src/x-tailwind-plugin/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import { TailwindHelpers } from '../types';
export default function utilities({ theme }: TailwindHelpers) {
return {
// TODO: replace this example styles with actual design styles
'.border-large': {
'.x-border-large': {
borderStyle: 'solid',
borderWidth: theme('x.borderWidth.4'),
borderColor: theme('x.colors.neutral.100')
},
// This is here to not include it in the bundle if it is not being used
'.disable-icon-offset *': {
'.x-disable-icon-offset *': {
'--enableIconOffset': 'var(--OFF)'
}
};
Expand Down

0 comments on commit 88ca398

Please sign in to comment.