Skip to content

Commit ea67114

Browse files
committed
fixes
1 parent 012a70b commit ea67114

2 files changed

Lines changed: 6 additions & 19 deletions

File tree

src/components/Label/Label.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>
3636
*/
3737
emphasis?: "strong" | "normal";
3838
/**
39-
* Include elements to the right of the label
39+
* Add other elements to the end of the label content
4040
*/
41-
actions?: React.ReactNode | React.ReactNode[];
41+
additionalElements?: React.ReactNode | React.ReactNode[];
4242
}
4343

4444
export const Label = ({
@@ -51,7 +51,7 @@ export const Label = ({
5151
tooltipProps,
5252
isLayoutForElement = "label",
5353
emphasis = "normal",
54-
actions,
54+
additionalElements,
5555
...otherLabelProps
5656
}: LabelProps) => {
5757
let htmlElementstring = isLayoutForElement;
@@ -69,10 +69,10 @@ export const Label = ({
6969
</span>
7070
)}
7171
{children && <span className={`${eccgui}-label__other`}>{children}</span>}
72-
{actions && (
72+
{additionalElements && (
7373
<>
7474
<Spacing vertical size="tiny" />
75-
{actions}
75+
{additionalElements}
7676
</>
7777
)}
7878
</>

src/components/PropertyValuePair/stories/PropertyName.stories.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,7 @@ const Template: StoryFn<typeof PropertyName> = (args) => <PropertyName {...args}
1515
export const Default = Template.bind({});
1616
Default.args = {
1717
children: loremIpsum({ p: 1, avgSentencesPerParagraph: 1, avgWordsPerSentence: 4, random: false }).toString(),
18-
};
19-
20-
export const EmphasisLabel = Template.bind({});
21-
EmphasisLabel.args = {
22-
...Default.args,
23-
labelProps: {
24-
emphasis: "strong",
25-
},
26-
};
27-
28-
export const RightIconabel = Template.bind({});
29-
RightIconabel.args = {
30-
...Default.args,
3118
labelProps: {
32-
actions: <Icon name={"state-warning"} tooltipText={"message"} small />,
19+
additionalElements: <Icon name={"state-warning"} tooltipText={"message"} small />,
3320
},
3421
};

0 commit comments

Comments
 (0)