|
1 | 1 | /** |
2 | | - * Copyright IBM Corp. 2016, 2023 |
| 2 | + * Copyright IBM Corp. 2016, 2025 |
3 | 3 | * |
4 | 4 | * This source code is licensed under the Apache-2.0 license found in the |
5 | 5 | * LICENSE file in the root directory of this source tree. |
@@ -373,68 +373,6 @@ export const ExperimentalAutoAlignBoundary = () => { |
373 | 373 | ); |
374 | 374 | }; |
375 | 375 |
|
376 | | -export const Test = () => { |
377 | | - const [open, setOpen] = useState(); |
378 | | - const align = document?.dir === 'rtl' ? 'bottom-right' : 'bottom-left'; |
379 | | - const alignTwo = document?.dir === 'rtl' ? 'bottom-left' : 'bottom-right'; |
380 | | - return ( |
381 | | - <div style={{ display: 'flex', gap: '8rem' }}> |
382 | | - <OverflowMenu |
383 | | - flipped={document?.dir === 'rtl'} |
384 | | - aria-label="overflow-menu"> |
385 | | - <OverflowMenuItem itemText="Stop app" /> |
386 | | - <OverflowMenuItem itemText="Restart app" /> |
387 | | - <OverflowMenuItem itemText="Rename app" /> |
388 | | - <OverflowMenuItem itemText="Clone and move app" disabled requireTitle /> |
389 | | - <OverflowMenuItem itemText="Edit routes and access" requireTitle /> |
390 | | - <OverflowMenuItem hasDivider isDelete itemText="Delete app" /> |
391 | | - </OverflowMenu> |
392 | | - |
393 | | - <Popover |
394 | | - align={align} |
395 | | - open={open} |
396 | | - onKeyDown={(evt) => { |
397 | | - if (match(evt, keys.Escape)) { |
398 | | - setOpen(false); |
399 | | - } |
400 | | - }} |
401 | | - isTabTip |
402 | | - onRequestClose={() => setOpen(false)}> |
403 | | - <button |
404 | | - aria-label="Settings" |
405 | | - type="button" |
406 | | - aria-expanded={open} |
407 | | - onClick={() => { |
408 | | - setOpen(!open); |
409 | | - }}> |
410 | | - <Settings /> |
411 | | - </button> |
412 | | - <PopoverContent className="p-3"> |
413 | | - <RadioButtonGroup |
414 | | - style={{ alignItems: 'flex-start', flexDirection: 'column' }} |
415 | | - legendText="Row height" |
416 | | - name="radio-button-group" |
417 | | - defaultSelected="small"> |
418 | | - <RadioButton labelText="Small" value="small" id="radio-small" /> |
419 | | - <RadioButton labelText="Large" value="large" id="radio-large" /> |
420 | | - </RadioButtonGroup> |
421 | | - <hr /> |
422 | | - <fieldset className={`cds--fieldset`}> |
423 | | - <legend className={`cds--label`}>Edit columns</legend> |
424 | | - <Checkbox defaultChecked labelText="Name" id="checkbox-label-1" /> |
425 | | - <Checkbox defaultChecked labelText="Type" id="checkbox-label-2" /> |
426 | | - <Checkbox |
427 | | - defaultChecked |
428 | | - labelText="Location" |
429 | | - id="checkbox-label-3" |
430 | | - /> |
431 | | - </fieldset> |
432 | | - </PopoverContent> |
433 | | - </Popover> |
434 | | - </div> |
435 | | - ); |
436 | | -}; |
437 | | - |
438 | 376 | export const TabTipExperimentalAutoAlign = () => { |
439 | 377 | const [open, setOpen] = useState(true); |
440 | 378 | const ref = useRef(); |
|
0 commit comments