Skip to content

Commit 84bf5d6

Browse files
committed
fix(item-details): Ensure "Extend" is beside disposition date in sidebar
1 parent b1ca157 commit 84bf5d6

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

src/features/item-details/ItemProperties.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
background-color: transparent;
2222
border-color: transparent;
2323
box-shadow: none;
24-
transition: background-color .2s, border-color .2s, margin-left .2s, padding .2s;
24+
transition:
25+
background-color .2s,
26+
border-color .2s,
27+
margin-left .2s,
28+
padding .2s;
2529
resize: none;
2630

2731
&:hover {
@@ -48,7 +52,10 @@
4852
padding: 0;
4953
border: none;
5054
box-shadow: none;
51-
transition: border .2s, height .2s, padding .2s;
55+
transition:
56+
border .2s,
57+
height .2s,
58+
padding .2s;
5259

5360
&:focus {
5461
height: 32px;
@@ -59,6 +66,7 @@
5966
}
6067

6168
.bdl-RetentionLink {
69+
display: inline;
6270
margin-left: 4px;
6371
}
6472

src/features/item-details/__tests__/ItemProperties.test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,17 @@ describe('features/item-details/ItemProperties', () => {
7474

7575
expect(wrapper).toMatchSnapshot();
7676
});
77+
78+
test('should render retention policy details when specified', () => {
79+
const wrapper = getWrapper({
80+
retentionPolicyProps: {
81+
dispositionTime: 1741475146,
82+
openModal: () => {},
83+
policyType: 'finite',
84+
retentionPolicyDescription: 'Test Description',
85+
},
86+
});
87+
88+
expect(wrapper).toMatchSnapshot();
89+
});
7790
});

src/features/item-details/__tests__/__snapshots__/ItemProperties.test.js.snap

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,16 @@ exports[`features/item-details/ItemProperties should render readonly url when on
214214
<RetentionPolicy />
215215
</dl>
216216
`;
217+
218+
exports[`features/item-details/ItemProperties should render retention policy details when specified 1`] = `
219+
<dl
220+
className="item-properties"
221+
>
222+
<RetentionPolicy
223+
dispositionTime={1741475146}
224+
openModal={[Function]}
225+
policyType="finite"
226+
retentionPolicyDescription="Test Description"
227+
/>
228+
</dl>
229+
`;

0 commit comments

Comments
 (0)