-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(file): allow custom button label (#295)
## What is the current behavior? The `buttonLabel` property on `cds-file` can be set even though it is private. When the file selection is cleared, the button label is reset to "Browse" instead of the previous `buttonLabel` value. Issue Number: CDE-1055 ## What is the new behavior? A custom button label is fully supported. ## Does this PR introduce a breaking change? No. ## Other Information - The `buttonLabel` property is now `public`. - The is a new property named `buttonLabelForSelection`. This property is `private` and should not be set externally.
- Loading branch information
1 parent
1682911
commit 62d7b9f
Showing
3 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters