mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
Fix input group disabled button styling (#3130)
This commit is contained in:
parent
5ef3aac5e2
commit
abed118ef0
@ -180,6 +180,27 @@ const ButtonGroupTemplate: Story<BitFormFieldComponent> = (args: BitFormFieldCom
|
||||
export const ButtonInputGroup = ButtonGroupTemplate.bind({});
|
||||
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) => ({
|
||||
props: args,
|
||||
template: `
|
||||
|
@ -10,6 +10,8 @@ export const PrefixClasses = [
|
||||
"tw-border-secondary-500",
|
||||
"tw-text-muted",
|
||||
"tw-rounded-none",
|
||||
"disabled:!tw-text-muted",
|
||||
"disabled:tw-border-secondary-500",
|
||||
];
|
||||
|
||||
@Directive({
|
||||
|
Loading…
Reference in New Issue
Block a user