Skip to content

Commit

Permalink
fix: removed capitalized style from pdc description (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored Feb 22, 2024
1 parent 0dff987 commit 77ff653
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
- ...
-->

## Versione X.X.X (dd/mm/yyyy)

### Fix

- La descrizione nelle card per i punti di contatto non mostrano più tutte le iniziali in maiuscolo.

## Versione 11.5.1 (19/02/2024)

### Migliorie
Expand Down
6 changes: 4 additions & 2 deletions src/components/ItaliaTheme/View/Commons/ContactsCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ const ContactsCard = ({ contact = {}, show_title = false, ...rest }) => {
{data?.value_punto_contatto.map((pdc, index) => (
<span key={index}>
<strong>
{pdc.pdc_type}
{pdc.pdc_desc ? ` - ${pdc.pdc_desc}` : ''}:{' '}
<span className="pdc-type">{pdc.pdc_type}</span>
<span className="pdc-desc">
{pdc.pdc_desc ? ` - ${pdc.pdc_desc}` : ''}:{' '}
</span>
</strong>
{renderPDCItemValue(pdc, intl)}
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/theme/ItaliaTheme/Components/_contactsCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
flex: 1 1 100%;
}

strong {
.pdc-type {
font-weight: 600;
text-transform: capitalize;
}
Expand Down

0 comments on commit 77ff653

Please sign in to comment.