moj-analytical-services / shinyGovstyle

Apply GOV.UK styled components and formats in shiny
https://moj-analytical-services.github.io/shinyGovstyle/
39 stars 7 forks source link

Add external link function #102

Open sarahmwong opened 3 weeks ago

sarahmwong commented 3 weeks ago

Pinched from dfe shiny

External links often open in a new tab - need to warn users of this and protect them against any vulnerabilities that this exposes them to

cjrace commented 2 weeks ago

Think best way to do this is steal the code from dfeshiny, make sure to attach the CSS for govuk-link styling and have the function here. Then in dfeshiny we can update our package to just be a wrapper around shinyGovstyle::external_link() (that way we don't have two versions of the same code)