Skip to content

Commit

Permalink
Merge pull request #949 from CommitChange/dedication-link-wrap-fix
Browse files Browse the repository at this point in the history
dedication link: more styling in css, fix wrapping
  • Loading branch information
wwahammy authored Nov 13, 2024
2 parents 99f223d + 969fd44 commit 17176b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/assets/stylesheets/nonprofits/donation_form/form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ $mint-milk : #E7F3ED;
}
}

.info-step .dedication-link {
border-width: thin;
border-style: solid;
padding: 2px;
border-radius: 2px;
display: block;
text-wrap: balance;
}

// dedication form
.info-step .dedication-form {
display: flex;
Expand Down
6 changes: 4 additions & 2 deletions client/js/nonprofits/donate/info-step.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ const dedicationLink = state => {
if(state.params$().hide_dedication) return ''
return h('label.u-centered.u-marginTop--10', [
h('small', [
h('a', {
h('a.dedication-link', {
on: { click: [state.showDedicationForm$, true] },
style: {'border-width': 'thin', 'border-style': 'solid', padding: '2px', 'border-color': `${app.nonprofit.brand_color || '#4DAE7F'}`, 'border-radius': '2px', 'box-shadow': `3px 3px ${app.nonprofit.brand_color || '#4DAE7F'}7F`}
style: {
'border-color': `${app.nonprofit.brand_color || '#4DAE7F'}`
, 'box-shadow': `3px 3px ${app.nonprofit.brand_color || '#4DAE7F'}7F`}
}, state.dedicationData$() && state.dedicationData$().first_name
? [h('i.fa.fa-check'), I18n.t('nonprofits.donate.info.dedication_saved') + `${state.dedicationData$().first_name || ''} ${state.dedicationData$().last_name || ''}`]
: [I18n.t('nonprofits.donate.info.dedication_link')]
Expand Down

0 comments on commit 17176b4

Please sign in to comment.