Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Conversation

@digitalkaoz
Copy link

Description

for better accessibility we derive an aria-label from the given (optional) label prop for the Adornment.

i thought about adding another prop to InputAdornmentProps. Not sure what might be the best option here. This is just a sensible default.

What is your opinion on this?

@codecov
Copy link

codecov bot commented Jan 9, 2019

Codecov Report

Merging #842 into master will decrease coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #842      +/-   ##
==========================================
- Coverage   92.74%   92.68%   -0.07%     
==========================================
  Files          47       40       -7     
  Lines        1337     1339       +2     
  Branches      168      168              
==========================================
+ Hits         1240     1241       +1     
- Misses         70       71       +1     
  Partials       27       27
Impacted Files Coverage Δ
lib/src/_shared/DateTextField.tsx 87.94% <100%> (-4.65%) ⬇️
...c/DateTimePicker/components/DateTimePickerTabs.tsx 78.57% <0%> (-1.43%) ⬇️
lib/src/_shared/BasePicker.tsx 93.18% <0%> (-0.57%) ⬇️
lib/src/DatePicker/components/CalendarHeader.tsx 93.75% <0%> (-0.19%) ⬇️
lib/src/wrappers/InlineWrapper.tsx 84.48% <0%> (ø) ⬆️
lib/src/TimePicker/components/Clock.tsx 100% <0%> (ø) ⬆️
lib/src/DateTimePicker/DateTimePickerInline.tsx 100% <0%> (ø) ⬆️
lib/src/_helpers/date-utils.ts 100% <0%> (ø) ⬆️
lib/src/TimePicker/components/ClockPointer.tsx 96.55% <0%> (ø) ⬆️
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d62621...c35ed26. Read the comment docs.

Copy link
Contributor

@dmtrKovalenko dmtrKovalenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is a problem. We need to support different locales

@digitalkaoz
Copy link
Author

digitalkaoz commented Jan 9, 2019 via email

@dmtrKovalenko
Copy link
Contributor

@digitalkaoz here I see 2 possibilities. Add prop something like keyboardButtonProps which will be spread to the IconButton. Or create something like keyboardBtnAreaLabel={(label: string) => string}

@digitalkaoz
Copy link
Author

i would go with keyboardButtonProps. sounds the most flexible, i'll update the PR

@digitalkaoz digitalkaoz force-pushed the patch-2 branch 3 times, most recently from 7c4fcb0 to 7e574a7 Compare January 11, 2019 09:15
@digitalkaoz digitalkaoz changed the title Add InputAdornment aria-label for better accessibility Add KeyboardButtonProps for spreading props onto Keyboard IconButton Jan 11, 2019
@digitalkaoz digitalkaoz force-pushed the patch-2 branch 3 times, most recently from 20fff5a to cd40792 Compare January 11, 2019 09:27
@dmtrKovalenko
Copy link
Contributor

👍 lgtm

@dmtrKovalenko
Copy link
Contributor

Find the IconButton by WithStyles(IconButton)

@digitalkaoz
Copy link
Author

@dmtrKovalenko im afraid im too stupid. when i fetch the html output with html() all is fine...maybe you can help here?

@dmtrKovalenko
Copy link
Contributor

Check the html with console.log(component.debug())

@digitalkaoz
Copy link
Author

as i said, the "aria-label" is rendered! maybe you can take over, and give it the final polish?

@dmtrKovalenko
Copy link
Contributor

Ok I will do

@digitalkaoz
Copy link
Author

@dmtrKovalenko any news on that one?

@dmtrKovalenko
Copy link
Contributor

@digitalkaoz will be included in the next release. I am pretty busy right now so will continue asap

@digitalkaoz
Copy link
Author

no worries, didnt wanted to stress you! :)

@dmtrKovalenko dmtrKovalenko changed the base branch from master to feature/keyboardButtonProps January 24, 2019 10:13
@dmtrKovalenko dmtrKovalenko merged commit 0430aae into mui:feature/keyboardButtonProps Jan 24, 2019
dmtrKovalenko added a commit that referenced this pull request Jan 24, 2019
#880)

* add `KeyboardButtonProps` for Keyboard Icon Button (#842)

* Add Unit test
dmtrKovalenko added a commit that referenced this pull request Jan 24, 2019
* Rename ExtendWrapper.d.ts to ExtendWrapper.ts to make it generate defenition file

* Release 2.1.1

* [docs] Make code highlighting use dark theme in dark mode (#852)

* Fix improper dispaying of highlighted code, use current theme for highlighting

* Remove unused markup highlight syntax

* [DateTimePicker] Add more consistent padding for 24h mode (#851)

* Migrate from classnames to nicer clsx (#855)

* Migrate from classnames to nicer clsx

* Update size snapshot

* Remove keycode in favour of event.key (#859)

* Remove keycode in favour of event.key

Ref https://twitter.com/olivtassinari/status/1084819202412818432

We can already see size improvement (which will be visible for end user
only after material-ui upgrade) in 1.5kB.

* Fix test

* Fix direction of leaving item (#873)

Fix incorrect leaving direction of Calendar animation

* Add yarn example to README.md

* Update packages (#878)

* [#865] Properly type inputProps (#879)

* [#865] Properly type inputProps

* Add usage of InputLabelProps for checking typing of extended props

* Add `KeyboardButtonProps` for spreading props onto Keyboard IconButton (#880)

* add `KeyboardButtonProps` for Keyboard Icon Button (#842)

* Add Unit test

* Release 2.1.2
OleksiiKukuruza pushed a commit to OleksiiKukuruza/material-ui-pickers that referenced this pull request Jan 25, 2019
mui#880)

* add `KeyboardButtonProps` for Keyboard Icon Button (mui#842)

* Add Unit test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants