viclafouch / mui-file-input

A file input designed for the React library MUI
https://viclafouch.github.io/mui-file-input/
MIT License
77 stars 17 forks source link

Allow CloseButton title and aria-label props customization #41

Closed bryanjtc closed 10 months ago

bryanjtc commented 11 months ago

Is your feature request related to a problem? Please describe. I use the mui-file-input in an app that supports different languages, but i can't change the language of the close button component.

Describe the solution you'd like Add props for the title and aria label

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

viclafouch commented 11 months ago

Hello !

I don't know what you mean. You can pass what you want as a label, values, etc...

bryanjtc commented 11 months ago

I checked the source code and the only component missing the customization is the close button

           <IconButton
              aria-label="Clear"
              title="Clear"
              size="small"
              disabled={disabled}
              className="MuiFileInput-IconButton"
              onClick={handleClearAll}
            >
              <CloseIcon fontSize="small" />
            </IconButton>