Skip to content

Commit 64f340f

Browse files
committed
refactor
1 parent 50e23bb commit 64f340f

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

  • app/javascript/src/apps/mydb/elements/details/samples/propertiesTab

app/javascript/src/apps/mydb/elements/details/samples/propertiesTab/SampleForm.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ export default class SampleForm extends React.Component {
439439
fetchNextInventoryLabel() {
440440
const { currentCollection } = UIStore.getState();
441441
const message = (
442-
<div style={{ textAlign: 'left' }}>
442+
<div className="text-start">
443443
<p className="mb-1">Could not find next inventory label.</p>
444444
<p className="mb-1">
445-
Please define an inventory label for this collection in the Account & Profile page.
445+
Please define an inventory label for this collection in the Account &amp; Profile page.
446446
Select the collection and assign a name, prefix, and starting counter.
447447
</p>
448448
</div>
@@ -685,7 +685,7 @@ export default class SampleForm extends React.Component {
685685
</li>
686686
</ul>
687687
<a
688-
href="https://chemotion.net/docs/eln/ui/first_steps?_highlight=inventory&_highlight=lab#define-a-sample-inventory-label-and-adjust-the-counter-inventory-label-for-a-collection"
688+
href="https://chemotion.net/docs/eln/ui/first_steps#define-a-sample-inventory-label-and-adjust-the-counter-inventory-label-for-a-collection"
689689
target="_blank"
690690
rel="noopener noreferrer"
691691
className="d-block mt-2"
@@ -704,7 +704,13 @@ export default class SampleForm extends React.Component {
704704
delay={{ show: 250, hide: 650 }}
705705
rootClose
706706
>
707-
<i className="ms-1 fa fa-info-circle" />
707+
<span
708+
tabIndex={0}
709+
role="button"
710+
aria-label="Information about sample inventory label configuration"
711+
>
712+
<i className="ms-1 fa fa-info-circle" />
713+
</span>
708714
</OverlayTrigger>
709715
);
710716
}

0 commit comments

Comments
 (0)