Title: Block button length
Last modified: August 22, 2026

---

# Block button length

 *  [sao987](https://wordpress.org/support/users/sao987/)
 * (@sao987)
 * [2 weeks, 4 days ago](https://wordpress.org/support/topic/block-button-length/)
 * It seems wordpress core changed how `has-custom-width`/`wp-block-button__width-
   100` works since 6.8.
 * Core’s CSS added a new rule that forces the inner link to `width: 100%` whenever
   the button has `has-custom-width`. Before this change, width-100 only stretched
   the outer `div class="wp-block-button"` to fill its flex container, now it also
   stretches the `a` link inside it to fill the div.
 * I think this problem combined with some new updates in 7.1 caused my vertical
   flex list to totally change behaviour and there is no any native way to fix my
   vertical buttons outline length mismatch.
 * This created quite a lot of problems with the theme unless I use custom CSS to
   fix each block. Would you consider fixing this problem?

Viewing 1 replies (of 1 total)

 *  Thread Starter [sao987](https://wordpress.org/support/users/sao987/)
 * (@sao987)
 * [2 weeks, 4 days ago](https://wordpress.org/support/topic/block-button-length/#post-19000055)
 * Actually I think I’ll just live with it and use custom CSS for each block.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fblock-button-length%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bjork/0.2.4/screenshot.png)
 * Björk
 * [Support Threads](https://wordpress.org/support/theme/bjork/)
 * [Active Topics](https://wordpress.org/support/theme/bjork/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bjork/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bjork/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [sao987](https://wordpress.org/support/users/sao987/)
 * Last activity: [2 weeks, 4 days ago](https://wordpress.org/support/topic/block-button-length/#post-19000055)
 * Status: not resolved