Skip to content

Commit

Permalink
✨ (static chart) remove link underlines (#3317)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann authored Mar 12, 2024
1 parent 9184f4e commit d08d5bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/@ourworldindata/grapher/src/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -675,10 +675,7 @@ export class StaticFooter extends Footer<StaticFooterProps> {
@computed protected get licenseAndOriginUrlText(): string {
const { finalUrl, finalUrlText, licenseText, licenseUrl, textColor } =
this
const textDecoration = this.manager.isStaticAndSmall
? "none"
: "underline"
const linkStyle = `fill: ${textColor}; text-decoration: ${textDecoration};`
const linkStyle = `fill: ${textColor};`
const licenseSvg = `<a target="_blank" style="${linkStyle}" href="${licenseUrl}">${licenseText}</a>`
if (!finalUrlText) return licenseSvg
const originUrlSvg = `<a target="_blank" style="${linkStyle}" href="${finalUrl}">${finalUrlText}</a>`
Expand Down

0 comments on commit d08d5bb

Please sign in to comment.