diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss index 9088662fda..e999daf0ca 100644 --- a/scss/_custom-forms.scss +++ b/scss/_custom-forms.scss @@ -276,6 +276,10 @@ content: $value; } } + + ~ .custom-file-label[data-browse]::after { + content: attr(data-browse); + } } .custom-file-label { diff --git a/site/docs/4.1/components/forms.md b/site/docs/4.1/components/forms.md index 64ec2cea2f..29f7fc10bc 100644 --- a/site/docs/4.1/components/forms.md +++ b/site/docs/4.1/components/forms.md @@ -1287,7 +1287,7 @@ The file input is the most gnarly of the bunch and requires additional JavaScrip We hide the default file `` via `opacity` and instead style the `