• Resolved karakar

    (@karakar)


    Hello,

    I have stylized my submit button so that there is no border radius. Everything works, however, upon submitting or clicking the button it goes back to the default radius. If I open the devtools window to inspect, it changes back to no radius as long as the devtools window is active. I tried checking the CSS but can’t seem to be able to locate it there. Can you please help me figure out what kind of error it is?

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter karakar

    (@karakar)

    The theme I’m using is Chaplin. I’ve double-checked and completely removed my border – it looks like what I’m referring to is definitely not assigned by the root html. My only guess is that it’s the plugin adding a border. It’s 2px and #025fcc. I’ve got no idea how to remove it though.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter karakar

    (@karakar)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What do you mean by “border radius”? I don’t see any rounded corners around the submit button.

    Thread Starter karakar

    (@karakar)

    There is a blue border with rounded corners around the button, which is not part of my CSS design. It only appears upon clicking the button and stays this way unless clicked elsewhere. Visible in Chrome, not Firefox.

    I’ve changed my design to red for contrast so you could see it better.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    This style rule is applied:

    button,
    .button,
    .faux-button,
    .wp-block-button__link,
    :root .wp-block-file__button,
    input[type="button"],
    input[type="reset"],
    input[type="submit"],
    :root .woocommerce #respond input#submit,
    :root .woocommerce a.button,
    :root .woocommerce button.button,
    :root .woocommerce input.button {
    	-webkit-appearance: none;
    	-moz-appearance: none;
    	background: #007C89;
    	border: none;
    	border-radius: .3rem;
    	color: #fff;
    	cursor: pointer;
    	display: inline-block;
    	font-size: .8888em;
    	font-weight: 600;
    	line-height: 1;
    	margin: 0;
    	padding: 1.175em 1.75em;
    	text-align: center;
    	text-decoration: none;
    	transition: opacity .15s linear;
    }

    wp-content/themes/chaplin/style.css:553

    Thread Starter karakar

    (@karakar)

    Thanks for your reply. I saw this rule, however, it doesn’t declare a border of 2px in color #025fcc that appears upon clicking. This rule has border: none.

    Thread Starter karakar

    (@karakar)

    I’ve figured it out. It must be a Chrome issue that adds this border. This line fixes it:

    button:focus {outline: 0;}

    Thanks for your help anyway, @takayukister. And thanks for the awesome plugin. 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Submit Button Adds Border Radius’ is closed to new replies.