mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 05:43:41 +00:00
Fix input group disabled button styling (#3130)
This commit is contained in:
@@ -180,6 +180,27 @@ const ButtonGroupTemplate: Story<BitFormFieldComponent> = (args: BitFormFieldCom
|
|||||||
export const ButtonInputGroup = ButtonGroupTemplate.bind({});
|
export const ButtonInputGroup = ButtonGroupTemplate.bind({});
|
||||||
ButtonInputGroup.args = {};
|
ButtonInputGroup.args = {};
|
||||||
|
|
||||||
|
const DisabledButtonInputGroupTemplate: Story<BitFormFieldComponent> = (
|
||||||
|
args: BitFormFieldComponent
|
||||||
|
) => ({
|
||||||
|
props: args,
|
||||||
|
template: `
|
||||||
|
<bit-form-field>
|
||||||
|
<bit-label>Label</bit-label>
|
||||||
|
<input bitInput placeholder="Placeholder" disabled />
|
||||||
|
<button bitSuffix bitButton disabled>
|
||||||
|
<i aria-hidden="true" class="bwi bwi-lg bwi-eye"></i>
|
||||||
|
</button>
|
||||||
|
<button bitSuffix bitButton>
|
||||||
|
<i aria-hidden="true" class="bwi bwi-lg bwi-clone"></i>
|
||||||
|
</button>
|
||||||
|
</bit-form-field>
|
||||||
|
`,
|
||||||
|
});
|
||||||
|
|
||||||
|
export const DisabledButtonInputGroup = DisabledButtonInputGroupTemplate.bind({});
|
||||||
|
DisabledButtonInputGroup.args = {};
|
||||||
|
|
||||||
const SelectTemplate: Story<BitFormFieldComponent> = (args: BitFormFieldComponent) => ({
|
const SelectTemplate: Story<BitFormFieldComponent> = (args: BitFormFieldComponent) => ({
|
||||||
props: args,
|
props: args,
|
||||||
template: `
|
template: `
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ export const PrefixClasses = [
|
|||||||
"tw-border-secondary-500",
|
"tw-border-secondary-500",
|
||||||
"tw-text-muted",
|
"tw-text-muted",
|
||||||
"tw-rounded-none",
|
"tw-rounded-none",
|
||||||
|
"disabled:!tw-text-muted",
|
||||||
|
"disabled:tw-border-secondary-500",
|
||||||
];
|
];
|
||||||
|
|
||||||
@Directive({
|
@Directive({
|
||||||
|
|||||||
Reference in New Issue
Block a user