Britain failed to enact democratic reforms well before the handover [0]. Chris Patton and successive British governments are partly to blame [1].
[0] - https://en.wikipedia.org/wiki/Young_Plan_(Hong_Kong)
[1] - https://www.theguardian.com/world/2017/jun/28/i-should-have-...