Skip to content

Commit

Permalink
Merge pull request #406 from mlibrary/LIBSEARCH-904-temporarily-make-…
Browse files Browse the repository at this point in the history
…text-action-inactive-and-add-a-message-to-users

[LIBSEARCH-904] Temporarily make "Text" action inactive and add a message to users
  • Loading branch information
erinesullivan authored Sep 11, 2023
2 parents 76b32f2 + 40a59f9 commit df1fa17
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/lists/components/ActionsList/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class ActionsList extends Component {
return this.handleClick(action, data.viewType);
}}
aria-pressed={isActive}
disabled={action.uid === 'text'}
>
<span style={{ opacity: '0.75' }}>
{action.icon_d
Expand All @@ -174,6 +175,7 @@ class ActionsList extends Component {
{this.state.alert && (
<Alert type={this.state.alert.intent}>{this.state.alert.text}</Alert>
)}
{!active && <p className='font-small'>Texting records to your mobile device is temporarily unavailable.</p>}
</div>
);
}}
Expand Down
10 changes: 10 additions & 0 deletions src/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3135,6 +3135,16 @@ input.get-this-field-input-year {
text-decoration: underline;
}

.lists-action-button:disabled {
background: #F2F2F2;
color: #4E4E4E;
cursor: not-allowed;
}

.lists-action-button:disabled:hover {
text-decoration: none;
}

.lists-action-button .icon {
margin-bottom: 0.2rem;
color: #4E4E4E;
Expand Down

0 comments on commit df1fa17

Please sign in to comment.