Skip to content

Commit 1abaf5a

Browse files
fix(fluid-date-picker): decorator styles (#18290)
1 parent 96b5a47 commit 1abaf5a

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

packages/react/src/components/Form/Form.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ export const withAILabel = (args) => {
390390
labelText="Date Picker label"
391391
size="md"
392392
id="fluid-date-picker"
393-
slug={aiLabel}
393+
decorator={aiLabel}
394394
{...rest}
395395
/>
396396
</FluidDatePicker>
@@ -544,7 +544,7 @@ withAILabel.argTypes = {
544544
type: 'boolean',
545545
},
546546
table: {
547-
category: 'Slug',
547+
category: 'AILabel',
548548
},
549549
},
550550
};

packages/styles/scss/components/fluid-date-picker/_fluid-date-picker.scss

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,11 @@
399399
border-inline-start-color: $border-subtle;
400400
}
401401

402-
// Slug styles
402+
// AI Label styles
403+
.#{$prefix}--date-picker--fluid
404+
.#{$prefix}--date-picker-input__wrapper--decorator
405+
.#{$prefix}--date-picker-input-inner-wrapper--decorator
406+
> *,
403407
.#{$prefix}--date-picker--fluid
404408
.#{$prefix}--date-picker-input__wrapper--slug
405409
.#{$prefix}--ai-label,
@@ -439,6 +443,15 @@
439443
border-block-end-color: $ai-border-strong;
440444
}
441445

446+
.#{$prefix}--date-picker--fluid
447+
.#{$prefix}--date-picker-input__wrapper--decorator
448+
.#{$prefix}--date-picker__input,
449+
.#{$prefix}--date-picker--fluid--invalid
450+
.#{$prefix}--date-picker-input__wrapper--decorator
451+
.#{$prefix}--date-picker__input,
452+
.#{$prefix}--date-picker--fluid--warn
453+
.#{$prefix}--date-picker-input__wrapper--decorator
454+
.#{$prefix}--date-picker__input,
442455
.#{$prefix}--date-picker--fluid
443456
.#{$prefix}--date-picker-input__wrapper--slug
444457
.#{$prefix}--date-picker__input,

0 commit comments

Comments
 (0)