Commit Graph

62 Commits

Author SHA1 Message Date
Michael Glass
eed29adcf2
don't thread visibleTitle through focusable callbacks 2019-10-23 16:59:30 +02:00
Michael Glass
11ca265f5b
modal options are optional config 2019-10-23 13:56:31 +02:00
Michael Glass
31dac5b6d1
make visibleTitle an optional config 2019-10-23 13:55:21 +02:00
Ju Liu
3642b80fc6 Remove viewFooterlessContent in favour of viewContent 2019-10-14 17:40:56 +01:00
Ju Liu
a087374cf4 Change shape of Modal.viewContent 2019-10-14 17:22:16 +01:00
Tessa Kelly
351a9e058b Final styling tweaks 2019-10-11 10:24:21 -07:00
Tessa Kelly
ba857536ef Fix background colors added for debugging 2019-10-10 16:33:04 -07:00
Tessa Kelly
74c0efba08 Fix spacing between continue and close buttons 2019-10-10 16:29:46 -07:00
Tessa Kelly
fec7bf64c6 Fix the top bar styles 2019-10-10 16:25:23 -07:00
Tessa Kelly
5179bff1fc Fix the upper corners depending on whether the title is showing or not 2019-10-09 14:33:29 -07:00
Tessa Kelly
4d741e9769 Fix the height 2019-10-09 13:53:13 -07:00
Tessa Kelly
5c46167a10 Improve footerless styles 2019-10-09 13:19:02 -07:00
Tessa Kelly
60f4971fbf fixup! Use V8 in examples 2019-10-09 13:06:31 -07:00
Tessa Kelly
f032e6a234 Make title visibility an attribute 2019-10-09 12:20:17 -07:00
Tessa Kelly
4f2c5ee905 Allow customizable modal height 2019-10-09 07:11:45 -07:00
Tessa Kelly
c3afbf89da Use V8 in examples 2019-10-09 07:03:07 -07:00
Tessa Kelly
d4f5f5f4b6 Oops fix button color 2019-08-16 15:57:36 -07:00
Tessa Kelly
0eb64eb7ee Display variable-length content 2019-08-16 15:51:00 -07:00
Tessa Kelly
afd8ebc6eb Pull the settings out of the modal 2019-08-16 15:47:21 -07:00
Tessa Kelly
45cfc71f0b Fix the focus behavior 2019-08-16 15:40:34 -07:00
Tessa Kelly
94384ddbce get the new version of the code using the new modal api 2019-08-16 15:37:17 -07:00
Tessa Kelly
f87a9de93a use autofocus attribute
sooooooooo this won't work if the autofocus is on the same element as the last focusalble elemnt, cause the ids get overwritten... back to the drawing board I suppose
2019-08-16 12:04:59 -07:00
Tessa Kelly
89e5f58ace Use clickable text for secondary button 2019-08-16 11:17:54 -07:00
Tessa Kelly
27af311778 enlargen the styleguide buttons 2019-08-16 11:12:39 -07:00
Tessa Kelly
43c5f27a1a Wrap the modal in a new stacking context
in the monolith, there were pages where tooltip triggers were showing through the modal backdrop
2019-08-16 10:09:30 -07:00
Tessa Kelly
a462e9ff04 Write out the focus behavior explicitly
the focus still won't handle correctly until we update the checkboxes to take arbitrary attributes, unfortunately
2019-07-25 22:26:57 -07:00
Tessa Kelly
1fcca16f12 Update modal to take advantage of the new button API 2019-07-25 22:14:26 -07:00
Tessa Kelly
0c6e191a1d cp Modal v5 to v6 2019-07-25 21:46:20 -07:00
Tessa Kelly
b1d44c054f 🎨 avoid passing along a function with lots of arguments 2019-06-18 09:00:01 -07:00
Tessa Kelly
3ba03bbdef Use a type alias to describe the focusable elements 2019-06-18 08:54:20 -07:00
Tessa Kelly
4fa137f642 Fix the states for main and secondary buttons 2019-06-12 11:27:21 -07:00
Tessa Kelly
699b2789de Use newest modal version 2019-06-12 11:12:37 -07:00
Tessa Kelly
ae00ab4841 Wire in setting for closing on escape or backdrop click 2019-06-11 12:11:59 -07:00
Tessa Kelly
83c06883f2 Adds dismiss on click setting 2019-06-11 12:11:59 -07:00
Tessa Kelly
576cc1f99a Upgrade to newest modal version 2019-06-11 12:11:59 -07:00
Tessa Kelly
daa52b80bc Adds secondary button 2019-06-11 12:11:59 -07:00
Tessa Kelly
7792e6fb4b Simplify the content view
Note that this is not perfect. if all the items in the modal are de-selected, then the trap doesn't work. pretty much just having the X doesn't work right now
2019-06-11 12:11:59 -07:00
Tessa Kelly
349d9132d3 Fix the focus trap behavior 2019-06-11 12:11:59 -07:00
Tessa Kelly
ffcee01e30 Move the settings into the modal 2019-06-11 12:11:59 -07:00
Tessa Kelly
89f38b32e4 Generalize the main button content 2019-06-11 12:11:59 -07:00
Tessa Kelly
88490ebdd2 Show the danger button 2019-06-11 12:11:59 -07:00
Tessa Kelly
ac6be5a103 Fix the content styles 2019-06-11 12:11:59 -07:00
Tessa Kelly
ad8be4964f 🎨 make launch button easier to work with 2019-06-11 12:11:59 -07:00
Tessa Kelly
2858098121 Adds primaryButton view 2019-06-11 12:11:59 -07:00
Tessa Kelly
a006d2836b Configure when the x shows 2019-06-11 12:11:59 -07:00
Tessa Kelly
a049f6a167 Adds setting for the visible title 2019-06-11 12:11:59 -07:00
Tessa Kelly
d079e73395 Adds separate viewTitle helper 2019-06-11 12:11:59 -07:00
Tessa Kelly
52258fcd3e Adds launch button helper 2019-06-11 12:11:59 -07:00
Tessa Kelly
a77eebd0c2 Basic working example of accessible button-free modules 2019-06-11 12:11:59 -07:00
Tessa Kelly
f83456aa2a Remove dependence on the assets 2019-06-11 12:11:59 -07:00