Make WordPress Core

Ticket #57354: tt3-button-border-test.diff

File tt3-button-border-test.diff, 782 bytes (added by ironprogrammer, 2 years ago)

TT3 modification to add outline and hover styles to button element

  • src/wp-content/themes/twentytwentythree/theme.json

    diff --git src/wp-content/themes/twentytwentythree/theme.json src/wp-content/themes/twentytwentythree/theme.json
    index ba78a4a50f..7a284707a7 100644
     
    595595                },
    596596                "elements": {
    597597                        "button": {
     598                                "outline": {
     599                                        "offset": "3px",
     600                                        "width": "3px",
     601                                        "style": "dashed",
     602                                        "color": "red"
     603                                },
    598604                                "border": {
    599605                                        "radius": "0"
    600606                                },
     
    606612                                        "color": {
    607613                                                "background": "var(--wp--preset--color--contrast)",
    608614                                                "text": "var(--wp--preset--color--base)"
     615                                        },
     616                                        "outline": {
     617                                                "offset": "3px",
     618                                                "width": "3px",
     619                                                "style": "solid",
     620                                                "color": "blue"
    609621                                        }
    610622                                },
    611623                                ":focus": {